Skip to content

Commit

Permalink
plain done
Browse files Browse the repository at this point in the history
  • Loading branch information
ushitora-anqou committed Nov 12, 2021
1 parent eb869e1 commit 14fe080
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/error_nt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
namespace nt::error {
void initialize()
{
#ifdef NDEBUG
// Release
loguru::g_stderr_verbosity = loguru::Verbosity_INFO;
#else
// Debug
loguru::g_stderr_verbosity = loguru::Verbosity_1; // Show LOG_DBG messages
#endif
}

void abortWithBacktrace()
Expand Down
4 changes: 3 additions & 1 deletion src/test0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,9 @@ int main()
// testProgressGraphMaker();
// testBlueprint();

loguru::g_stderr_verbosity = loguru::Verbosity_1;
using namespace nt;

nt::error::initialize();

nt::testAllocator();
nt::test0();
Expand Down

0 comments on commit 14fe080

Please sign in to comment.