mirror of
https://github.com/FairRootGroup/FairLogger.git
synced 2025-10-13 00:31:12 +00:00
Remove NDEBUG check
This commit is contained in:
parent
35ebc10204
commit
ce64f628b0
|
@ -219,8 +219,7 @@ message(STATUS " ")
|
||||||
if(DEFINED FAIR_MIN_SEVERITY)
|
if(DEFINED FAIR_MIN_SEVERITY)
|
||||||
message(STATUS " ${Cyan}FAIR_MIN_SEVERITY${CR} ${BGreen}${FAIR_MIN_SEVERITY}${CR} (change with ${BMagenta}-DFAIR_MIN_SEVERITY=...${CR})")
|
message(STATUS " ${Cyan}FAIR_MIN_SEVERITY${CR} ${BGreen}${FAIR_MIN_SEVERITY}${CR} (change with ${BMagenta}-DFAIR_MIN_SEVERITY=...${CR})")
|
||||||
else()
|
else()
|
||||||
message(STATUS " ${Cyan}FAIR_MIN_SEVERITY${CR} not defined${CR}, enabling all severities (starting with info if NDEBUG is defined)${CR}")
|
message(STATUS " ${Cyan}FAIR_MIN_SEVERITY${CR} not defined${CR}, enabling all severities (change with ${BMagenta}-DFAIR_MIN_SEVERITY=...${CR})")
|
||||||
message(STATUS " (change with ${BMagenta}-DFAIR_MIN_SEVERITY=...${CR})")
|
|
||||||
endif()
|
endif()
|
||||||
message(STATUS " ")
|
message(STATUS " ")
|
||||||
message(STATUS " ${Cyan}INSTALL PREFIX${CR} ${BGreen}${CMAKE_INSTALL_PREFIX}${CR} (change with ${BMagenta}-DCMAKE_INSTALL_PREFIX=...${CR})")
|
message(STATUS " ${Cyan}INSTALL PREFIX${CR} ${BGreen}${CMAKE_INSTALL_PREFIX}${CR} (change with ${BMagenta}-DCMAKE_INSTALL_PREFIX=...${CR})")
|
||||||
|
|
|
@ -111,7 +111,7 @@ The minimum severity level can be configured at compile time via definition of `
|
||||||
#include <fairlogger/Logger.h>
|
#include <fairlogger/Logger.h>
|
||||||
```
|
```
|
||||||
|
|
||||||
When `FAIR_MIN_SEVERITY` is not provided, it will be set to `info` if `NDEBUG` is defined, otherwise all severities will be enabled.
|
When `FAIR_MIN_SEVERITY` is not provided all severities are enabled.
|
||||||
|
|
||||||
## 4. Verbosity
|
## 4. Verbosity
|
||||||
|
|
||||||
|
|
|
@ -13,10 +13,6 @@
|
||||||
#warning "The symbol 'DEBUG' is used in FairRoot Logger. undefining..."
|
#warning "The symbol 'DEBUG' is used in FairRoot Logger. undefining..."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(FAIR_MIN_SEVERITY) && defined(NDEBUG)
|
|
||||||
#define FAIR_MIN_SEVERITY info
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef FAIRLOGGER_USE_BOOST_PRETTY_FUNCTION
|
#ifdef FAIRLOGGER_USE_BOOST_PRETTY_FUNCTION
|
||||||
#include <boost/current_function.hpp>
|
#include <boost/current_function.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
@ -324,7 +320,7 @@ class Logger
|
||||||
static bool fIsDestructed;
|
static bool fIsDestructed;
|
||||||
static struct DestructionHelper { ~DestructionHelper() { Logger::fIsDestructed = true; }} fDestructionHelper;
|
static struct DestructionHelper { ~DestructionHelper() { Logger::fIsDestructed = true; }} fDestructionHelper;
|
||||||
|
|
||||||
static bool constexpr SuppressSeverity(Severity sev)
|
static bool constexpr SuppressSeverity(Severity sev __attribute__((unused)))
|
||||||
{
|
{
|
||||||
#ifdef FAIR_MIN_SEVERITY
|
#ifdef FAIR_MIN_SEVERITY
|
||||||
return sev < Severity::FAIR_MIN_SEVERITY;
|
return sev < Severity::FAIR_MIN_SEVERITY;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user