From b5bdb4626864277eaa7e68e0b98ea03ee73694b9 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 14 Feb 2018 22:25:09 +0100 Subject: [PATCH] Added logging of the G-code export. --- xs/src/libslic3r/GCode.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xs/src/libslic3r/GCode.cpp b/xs/src/libslic3r/GCode.cpp index 8c14b4adb..39f1a4102 100644 --- a/xs/src/libslic3r/GCode.cpp +++ b/xs/src/libslic3r/GCode.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -352,6 +353,8 @@ void GCode::do_export(Print *print, const char *path, GCodePreviewData *preview_ { PROFILE_CLEAR(); + BOOST_LOG_TRIVIAL(info) << "Exporting G-code..."; + // Remove the old g-code if it exists. boost::nowide::remove(path); @@ -389,6 +392,8 @@ void GCode::do_export(Print *print, const char *path, GCodePreviewData *preview_ std::string("Failed to rename the output G-code file from ") + path_tmp + " to " + path + '\n' + "Is " + path_tmp + " locked?" + '\n'); + BOOST_LOG_TRIVIAL(info) << "Exporting G-code finished"; + // Write the profiler measurements to file PROFILE_UPDATE(); PROFILE_OUTPUT(debug_out_path("gcode-export-profile.txt").c_str());