From 71879a9fa1976147179cda2ae98a791a9e2a3bdd Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 27 Oct 2020 10:03:06 -0700 Subject: [PATCH] ircd::db: Allow conditional debuglog message in release-mode; minor cleanup. --- ircd/db_database.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ircd/db_database.cc b/ircd/db_database.cc index 212424a61..0be1d5b35 100644 --- a/ircd/db_database.cc +++ b/ircd/db_database.cc @@ -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,