From 694b88b27c40a64d0af50dec51af082621d0d5c4 Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Sat, 16 Jul 2022 13:55:15 +0800 Subject: [PATCH 1/2] adjust the log level for released version Change-Id: Id874cc5b84a1c236dc00d9430867a913b0417beb --- src/BambuStudio.cpp | 5 ----- src/libslic3r/AppConfig.cpp | 2 +- src/slic3r/GUI/GUI_App.cpp | 3 ++- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/BambuStudio.cpp b/src/BambuStudio.cpp index b17d2b291..7e3b654e3 100644 --- a/src/BambuStudio.cpp +++ b/src/BambuStudio.cpp @@ -1448,7 +1448,6 @@ int CLI::run(int argc, char **argv) bool CLI::setup(int argc, char **argv) { -#if !BBL_RELEASE_TO_PUBLIC { Slic3r::set_logging_level(1); const char *loglevel = boost::nowide::getenv("BBL_LOGLEVEL"); @@ -1459,10 +1458,6 @@ bool CLI::setup(int argc, char **argv) boost::nowide::cerr << "Invalid BBL_LOGLEVEL environment variable: " << loglevel << std::endl; } } -#else - //set to fatal - Slic3r::set_logging_level(0); -#endif // Detect the operating system flavor after SLIC3R_LOGLEVEL is set. detect_platform(); diff --git a/src/libslic3r/AppConfig.cpp b/src/libslic3r/AppConfig.cpp index 1ef53c164..6a79668c4 100644 --- a/src/libslic3r/AppConfig.cpp +++ b/src/libslic3r/AppConfig.cpp @@ -173,7 +173,7 @@ void AppConfig::set_defaults() set_bool("developer_mode", false); if (get("severity_level").empty()) - set("severity_level", "trace"); + set("severity_level", "info"); if (get("dump_video").empty()) set_bool("dump_video", false); diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index c35f906cf..143334d77 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -1417,14 +1417,15 @@ bool GUI_App::OnInit() bool GUI_App::on_init_inner() { //start log here -#if !BBL_RELEASE_TO_PUBLIC std::time_t t = std::time(0); std::tm* now_time = std::localtime(&t); std::stringstream buf; buf << std::put_time(now_time, "debug_%a_%b_%d_%H_%M_%S.log"); std::string log_filename = buf.str(); +#if !BBL_RELEASE_TO_PUBLIC set_log_path_and_level(log_filename, 5); #else + set_log_path_and_level(log_filename, 3); #endif // Set initialization of image handlers before any UI actions - See GH issue #7469 From 5eed57824e54bffd5fdfbdf5f442ab5aec2b39a9 Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Sat, 16 Jul 2022 15:23:00 +0800 Subject: [PATCH 2/2] Version: update to 1.0.10.5 --- version.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.inc b/version.inc index 23f2685ca..2c1aa3a30 100644 --- a/version.inc +++ b/version.inc @@ -7,4 +7,4 @@ set(SLIC3R_APP_KEY "BambuStudio") if(NOT DEFINED BBL_RELEASE_TO_PUBLIC) set(BBL_RELEASE_TO_PUBLIC "0") endif() -set(SLIC3R_VERSION "01.00.10.04") +set(SLIC3R_VERSION "01.00.10.05")