Software /
code /
prosody
Diff
util/datamanager.lua @ 706:ce772e283992
datamanager: Change log message from type "warn" to "debug" when loading a file fails
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 13 Jan 2009 19:41:52 +0500 |
parent | 643:8ff454831f7d |
child | 732:0343739f3d71 |
line wrap: on
line diff
--- a/util/datamanager.lua Tue Jan 13 19:37:12 2009 +0500 +++ b/util/datamanager.lua Tue Jan 13 19:41:52 2009 +0500 @@ -88,7 +88,7 @@ function load(username, host, datastore) local data, ret = loadfile(getpath(username, host, datastore)); if not data then - log("warn", "Failed to load "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil")); + log("debug", "Failed to load "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil")); return nil; end setfenv(data, {}); @@ -163,7 +163,7 @@ function list_load(username, host, datastore) local data, ret = loadfile(getpath(username, host, datastore, "list")); if not data then - log("warn", "Failed to load "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil")); + log("debug", "Failed to load "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil")); return nil; end local items = {};