mirror of
https://github.com/matrix-construct/construct
synced 2024-11-30 02:32:43 +01:00
ircd::db: Allow conditional debuglog message in release-mode; minor cleanup.
This commit is contained in:
parent
ea5ebb4a12
commit
71879a9fa1
1 changed files with 4 additions and 3 deletions
|
@ -3332,7 +3332,7 @@ noexcept
|
|||
|
||||
log::debug
|
||||
{
|
||||
log, "[%s] WAL recovery mapping update: log_number:%zu name_id:%zu",
|
||||
log, "[%s] WAL recovery mapping update :log_number:%zu name_id:%zu",
|
||||
db::name(*d),
|
||||
log_number.size(),
|
||||
name_id.size(),
|
||||
|
@ -3350,9 +3350,10 @@ noexcept
|
|||
assert(d && replace && replaced);
|
||||
|
||||
if(debug)
|
||||
log::debug
|
||||
log::logf
|
||||
{
|
||||
log, "[%s] WAL recovery record log:%lu '%s' wb[count:%zu size:%zu]",
|
||||
log, log::level::DEBUG,
|
||||
"[%s] WAL recovery record log:%lu '%s' wb[count:%zu size:%zu]",
|
||||
db::name(*d),
|
||||
log_nr,
|
||||
name,
|
||||
|
|
Loading…
Reference in a new issue