diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-09-06 01:33:41 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-09-06 01:33:41 +0500 |
commit | c1e71bdec84a2ac4c5ab5bca75854a9e36464612 (patch) | |
tree | e924685b5ddb144243e2584133b8211fdb41d716 /util/datamanager.lua | |
parent | 55f1133e4e3af74bc342c042d05d777b096f0cbf (diff) | |
download | prosody-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.lua | 4 |
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 |