mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-13 06:04:42 +02:00
util/log, logging: Provide ShouldDebugLog and ShouldTraceLog instead of a generic ShouldLog
This commit is contained in:
@@ -171,7 +171,7 @@ void ValidationSignals::SyncWithValidationInterfaceQueue()
|
||||
} while (0)
|
||||
|
||||
#define LOG_MSG(fmt, ...) \
|
||||
(ShouldLog(BCLog::VALIDATION, BCLog::Level::Debug) ? tfm::format((fmt), __VA_ARGS__) : std::string{})
|
||||
(util::log::ShouldDebugLog(BCLog::VALIDATION) ? tfm::format((fmt), __VA_ARGS__) : std::string{})
|
||||
|
||||
#define LOG_EVENT(fmt, ...) \
|
||||
LogDebug(BCLog::VALIDATION, fmt, __VA_ARGS__)
|
||||
|
||||
Reference in New Issue
Block a user