Skip to content

Commit 14fe080

Browse files
plain done
1 parent eb869e1 commit 14fe080

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/error_nt.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
namespace nt::error {
88
void initialize()
99
{
10+
#ifdef NDEBUG
11+
// Release
1012
loguru::g_stderr_verbosity = loguru::Verbosity_INFO;
13+
#else
14+
// Debug
15+
loguru::g_stderr_verbosity = loguru::Verbosity_1; // Show LOG_DBG messages
16+
#endif
1117
}
1218

1319
void abortWithBacktrace()

src/test0.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,9 @@ int main()
10321032
// testProgressGraphMaker();
10331033
// testBlueprint();
10341034

1035-
loguru::g_stderr_verbosity = loguru::Verbosity_1;
1035+
using namespace nt;
1036+
1037+
nt::error::initialize();
10361038

10371039
nt::testAllocator();
10381040
nt::test0();

0 commit comments

Comments
 (0)