aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-07-12 10:24:28 +0200
committerKim Alvefur <zash@zash.se>2023-07-12 10:24:28 +0200
commit5ee4b4e8a6a888a16f24d127c1da57468c8d0c8c (patch)
tree0944055c5474f0be7467f899304266b0abb90518 /util
parent96bc5fd439dfbb12f364b1d4950684eef9a98a73 (diff)
downloadprosody-5ee4b4e8a6a888a16f24d127c1da57468c8d0c8c.tar.gz
prosody-5ee4b4e8a6a888a16f24d127c1da57468c8d0c8c.zip
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
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 b15cd6d4..a124b3dc 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -403,7 +403,7 @@ local function get_list_index(username, host, datastore)
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 @@ end
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");