mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-19 03:25:55 +08:00
Fix: disable debug and trace logs in builds
This commit is contained in:
parent
9f52d0a481
commit
906f605333
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user