Software /
code /
prosody
Diff
util/datamanager.lua @ 1732:f1282fad2f99
datamanager: Fixed logging errors on deletion of datastores not owned by a user@host
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 06 Sep 2009 01:33:41 +0500 |
parent | 1523:841d61be198f |
child | 2159:2ef4458b23d9 |
line wrap: on
line diff
--- a/util/datamanager.lua Sun Sep 06 01:32:36 2009 +0500 +++ b/util/datamanager.lua Sun Sep 06 01:33:41 2009 +0500 @@ -137,7 +137,7 @@ 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 @@ 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