aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-09 15:12:32 +0200
committerKim Alvefur <zash@zash.se>2019-07-09 15:12:32 +0200
commit37a74662f01498e2723be58d2a565ab36eff9fe9 (patch)
treecd3e22e683cc3e8eb991b3da64ccdee292986ecb /plugins
parentc6ca3b473e60f56a20113a3ab9d8a33231aae0e5 (diff)
downloadprosody-37a74662f01498e2723be58d2a565ab36eff9fe9.tar.gz
prosody-37a74662f01498e2723be58d2a565ab36eff9fe9.zip
mod_pep: Only log when creating new pubsub services
Once upon a time get_pep_service() would get called with random bare JIDs and remote hostnames, which is why it was logged this way. This seems to have been fixed, so it's not as useful anymore. It's still useful to know when it creates a new service object.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pep.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index 54f0451d..c0a85a9d 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -183,12 +183,12 @@ local function on_node_creation(event)
end
function get_pep_service(username)
- module:log("debug", "get_pep_service(%q)", username);
local user_bare = jid_join(username, host);
local service = services[username];
if service then
return service;
end
+ module:log("debug", "Creating pubsub service for user %q", username);
service = pubsub.new({
pep_username = username;
node_defaults = {