Software /
code /
prosody
Comparison
util/datamanager.lua @ 13181:87487056bccb
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
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 12 Jul 2023 10:24:28 +0200 |
parent | 13180:48622b89f570 |
child | 13182:c48ae06e24d6 |
comparison
equal
deleted
inserted
replaced
13180:48622b89f570 | 13181:87487056bccb |
---|---|
401 local index_filename = getpath(username, host, datastore, "lidx"); | 401 local index_filename = getpath(username, host, datastore, "lidx"); |
402 local ih = io_open(index_filename); | 402 local ih = io_open(index_filename); |
403 if ih then | 403 if ih then |
404 local magic = ih:read(#index_magic); | 404 local magic = ih:read(#index_magic); |
405 if magic ~= index_magic then | 405 if magic ~= index_magic then |
406 log("warn", "Index %q has wrong version number (got %q, expected %q)", index_filename, magic, index_magic); | 406 log("debug", "Index %q has wrong version number (got %q, expected %q), rebuilding...", index_filename, magic, index_magic); |
407 -- wrong version or something | 407 -- wrong version or something |
408 ih:close(); | 408 ih:close(); |
409 ih = nil; | 409 ih = nil; |
410 end | 410 end |
411 end | 411 end |
485 return items; | 485 return items; |
486 end | 486 end |
487 | 487 |
488 local function list_open(username, host, datastore) | 488 local function list_open(username, host, datastore) |
489 if not index_magic then | 489 if not index_magic then |
490 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"); | 490 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"); |
491 return list_load(username, host, datastore); | 491 return list_load(username, host, datastore); |
492 end | 492 end |
493 local filename = getpath(username, host, datastore, "list"); | 493 local filename = getpath(username, host, datastore, "list"); |
494 local file, err, errno = io_open(filename); | 494 local file, err, errno = io_open(filename); |
495 if not file then | 495 if not file then |