util.datamanager: Reduce log level of left over debug messages to debug (thanks Trung)
authorKim Alvefur <zash@zash.se>
Wed, 12 Jul 2023 10:24:28 +0200
changeset 13185 87487056bccb
parent 13184 48622b89f570
child 13186 c48ae06e24d6
util.datamanager: Reduce log level of left over debug messages to debug (thanks Trung) These were mostly 'warn' to make them stand out from the debug noise
util/datamanager.lua
--- a/util/datamanager.lua	Mon Jul 10 17:52:52 2023 +0200
+++ b/util/datamanager.lua	Wed Jul 12 10:24:28 2023 +0200
@@ -403,7 +403,7 @@
 	if ih then
 		local magic = ih:read(#index_magic);
 		if magic ~= index_magic then
-			log("warn", "Index %q has wrong version number (got %q, expected %q)", index_filename, magic, index_magic);
+			log("debug", "Index %q has wrong version number (got %q, expected %q), rebuilding...", index_filename, magic, index_magic);
 			-- wrong version or something
 			ih:close();
 			ih = nil;
@@ -487,7 +487,7 @@
 
 local function list_open(username, host, datastore)
 	if not index_magic then
-		log("warn", "Falling back from lazy loading to to loading full list for %s storage for user: %s@%s", datastore, username or "nil", host or "nil");
+		log("debug", "Falling back from lazy loading to to loading full list for %s storage for user: %s@%s", datastore, username or "nil", host or "nil");
 		return list_load(username, host, datastore);
 	end
 	local filename = getpath(username, host, datastore, "list");