Software /
code /
prosody
Changeset
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 |
parents | 1731:38d87682cb4a |
children | 1733:d55ee6c66910 1770:3e17002221eb |
files | util/datamanager.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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