Fix: disable debug and trace logs in builds

This commit is contained in:
Martin Šach 2024-01-17 14:43:42 +01:00
parent 9f52d0a481
commit 906f605333

View File

@ -123,6 +123,14 @@ unsigned get_logging_level()
}
}
// Force set_logging_level(<=error) after loading of the DLL.
// This is used ot disable logging for unit and integration tests.
static struct RunOnInit {
RunOnInit() {
set_logging_level(1);
}
} g_RunOnInit;
void enforce_thread_count(const std::size_t count)
{
// Disable parallelization to simplify debugging.