aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-01-11 05:28:07 +0000
committerMatthew Wild <mwild1@gmail.com>2011-01-11 05:28:07 +0000
commit327a174479f73deab69acbb58576720d4e77a9dc (patch)
treea19c5eb7fd76edc6dda4ce9599a13794f0683338 /util
parent72dc9416ef33f5d42d0959cfc0030c4855ea442d (diff)
downloadprosody-327a174479f73deab69acbb58576720d4e77a9dc.tar.gz
prosody-327a174479f73deab69acbb58576720d4e77a9dc.zip
util.datamanager: Change from 'Failed to load' to 'Assuming empty' for data store files that do not seem to exist
Diffstat (limited to 'util')
-rw-r--r--util/datamanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index 2be3acfd..d5e9c88c 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -115,7 +115,7 @@ function load(username, host, datastore)
if not data then
local mode = lfs.attributes(getpath(username, host, datastore), "mode");
if not mode then
- log("debug", "Failed to load "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil"));
+ log("debug", "Assuming empty "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil"));
return nil;
else -- file exists, but can't be read
-- TODO more detailed error checking and logging?
@@ -207,7 +207,7 @@ function list_load(username, host, datastore)
if not data then
local mode = lfs.attributes(getpath(username, host, datastore, "list"), "mode");
if not mode then
- log("debug", "Failed to load "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil"));
+ log("debug", "Assuming empty "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil"));
return nil;
else -- file exists, but can't be read
-- TODO more detailed error checking and logging?