Skip to content

Commit 0f987e9

Browse files
committed
adjust the log level for released version
Change-Id: Id874cc5b84a1c236dc00d9430867a913b0417beb
1 parent 4544dad commit 0f987e9

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/BambuStudio.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,6 @@ int CLI::run(int argc, char **argv)
14481448

14491449
bool CLI::setup(int argc, char **argv)
14501450
{
1451-
#if !BBL_RELEASE_TO_PUBLIC
14521451
{
14531452
Slic3r::set_logging_level(1);
14541453
const char *loglevel = boost::nowide::getenv("BBL_LOGLEVEL");
@@ -1459,10 +1458,6 @@ bool CLI::setup(int argc, char **argv)
14591458
boost::nowide::cerr << "Invalid BBL_LOGLEVEL environment variable: " << loglevel << std::endl;
14601459
}
14611460
}
1462-
#else
1463-
//set to fatal
1464-
Slic3r::set_logging_level(0);
1465-
#endif
14661461

14671462
// Detect the operating system flavor after SLIC3R_LOGLEVEL is set.
14681463
detect_platform();

src/libslic3r/AppConfig.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void AppConfig::set_defaults()
173173
set_bool("developer_mode", false);
174174

175175
if (get("severity_level").empty())
176-
set("severity_level", "trace");
176+
set("severity_level", "info");
177177

178178
if (get("dump_video").empty())
179179
set_bool("dump_video", false);

src/slic3r/GUI/GUI_App.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,14 +1417,15 @@ bool GUI_App::OnInit()
14171417
bool GUI_App::on_init_inner()
14181418
{
14191419
//start log here
1420-
#if !BBL_RELEASE_TO_PUBLIC
14211420
std::time_t t = std::time(0);
14221421
std::tm* now_time = std::localtime(&t);
14231422
std::stringstream buf;
14241423
buf << std::put_time(now_time, "debug_%a_%b_%d_%H_%M_%S.log");
14251424
std::string log_filename = buf.str();
1425+
#if !BBL_RELEASE_TO_PUBLIC
14261426
set_log_path_and_level(log_filename, 5);
14271427
#else
1428+
set_log_path_and_level(log_filename, 3);
14281429
#endif
14291430

14301431
// Set initialization of image handlers before any UI actions - See GH issue #7469

0 commit comments

Comments
 (0)