mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
Fix empty log lines (#825)
This commit is contained in:
@@ -90,13 +90,15 @@ using SourceLocationType = SourceLocation;
|
||||
|
||||
/**
|
||||
* @brief Skips evaluation of expensive argument lists if the given logger is disabled for the required severity level.
|
||||
*
|
||||
* Note: Currently this introduces potential shadowing (unlikely).
|
||||
*/
|
||||
#define LOG(x) \
|
||||
if (!x) \
|
||||
{ \
|
||||
} \
|
||||
else \
|
||||
x
|
||||
#define LOG(x) \
|
||||
if (auto clio_pump__ = x; not clio_pump__) \
|
||||
{ \
|
||||
} \
|
||||
else \
|
||||
clio_pump__
|
||||
|
||||
/**
|
||||
* @brief Custom severity levels for @ref util::Logger.
|
||||
|
||||
Reference in New Issue
Block a user