aboutsummaryrefslogtreecommitdiffstats
path: root/util/datamanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-09-06 01:33:41 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-09-06 01:33:41 +0500
commitc1e71bdec84a2ac4c5ab5bca75854a9e36464612 (patch)
treee924685b5ddb144243e2584133b8211fdb41d716 /util/datamanager.lua
parent55f1133e4e3af74bc342c042d05d777b096f0cbf (diff)
downloadprosody-c1e71bdec84a2ac4c5ab5bca75854a9e36464612.tar.gz
prosody-c1e71bdec84a2ac4c5ab5bca75854a9e36464612.zip
datamanager: Fixed logging errors on deletion of datastores not owned by a user@host
Diffstat (limited to 'util/datamanager.lua')
-rw-r--r--util/datamanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index dcc35bb5..4d07d6cc 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -137,7 +137,7 @@ function store(username, host, datastore, data)
append(f, data);
f:close();
if next(data) == nil then -- try to delete empty datastore
- log("debug", "Removing empty %s datastore for user %s@%s", datastore, username, host);
+ log("debug", "Removing empty %s datastore for user %s@%s", datastore, username or "nil", host or "nil");
os_remove(getpath(username, host, datastore));
end
-- we write data even when we are deleting because lua doesn't have a
@@ -179,7 +179,7 @@ function list_store(username, host, datastore, data)
end
f:close();
if next(data) == nil then -- try to delete empty datastore
- log("debug", "Removing empty %s datastore for user %s@%s", datastore, username, host);
+ log("debug", "Removing empty %s datastore for user %s@%s", datastore, username or "nil", host or "nil");
os_remove(getpath(username, host, datastore, "list"));
end
-- we write data even when we are deleting because lua doesn't have a