Changeset

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
parents 705:11afa1d88c55
children 707:bb9583314ec7
files util/datamanager.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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 = {};