0
0
Fork 0
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:
Jason Volk 2020-10-27 10:03:06 -07:00
parent ea5ebb4a12
commit 71879a9fa1

View file

@ -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,