Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-03-03 16:38:25 +0300
committerbubnikv <bubnikv@gmail.com>2017-03-03 16:38:25 +0300
commita219ae3d27b9ca6ce6df5297e3a0c0f00848a9d9 (patch)
tree239bb056646427cfd1542808da96474734fc3000 /xs
parent4de33effdc91fedf2d3ecefc51bac107ed8d739a (diff)
Set boost tracing level on DLL initialization to errors only.
Diffstat (limited to 'xs')
-rw-r--r--xs/src/libslic3r/utils.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/xs/src/libslic3r/utils.cpp b/xs/src/libslic3r/utils.cpp
index 828ece50f..50db6f300 100644
--- a/xs/src/libslic3r/utils.cpp
+++ b/xs/src/libslic3r/utils.cpp
@@ -4,7 +4,7 @@
namespace Slic3r {
-static boost::log::trivial::severity_level logSeverity = boost::log::trivial::fatal;
+static boost::log::trivial::severity_level logSeverity = boost::log::trivial::error;
void set_logging_level(unsigned int level)
{
@@ -29,6 +29,11 @@ void set_logging_level(unsigned int level)
);
}
+// Force set_logging_level(<=error) after loading of the DLL.
+static struct SetLoggingLevelOnInit {
+ SetLoggingLevelOnInit() { set_logging_level(1); }
+} g_SetLoggingLevelOnInit;
+
void trace(unsigned int level, const char *message)
{
boost::log::trivial::severity_level severity = boost::log::trivial::trace;