Added logging of the G-code export.
This commit is contained in:
parent
7f51b07f69
commit
b5bdb46268
@ -13,6 +13,7 @@
|
|||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
#include <boost/algorithm/string/find.hpp>
|
#include <boost/algorithm/string/find.hpp>
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
|
#include <boost/log/trivial.hpp>
|
||||||
|
|
||||||
#include <boost/nowide/iostream.hpp>
|
#include <boost/nowide/iostream.hpp>
|
||||||
#include <boost/nowide/cstdio.hpp>
|
#include <boost/nowide/cstdio.hpp>
|
||||||
@ -352,6 +353,8 @@ void GCode::do_export(Print *print, const char *path, GCodePreviewData *preview_
|
|||||||
{
|
{
|
||||||
PROFILE_CLEAR();
|
PROFILE_CLEAR();
|
||||||
|
|
||||||
|
BOOST_LOG_TRIVIAL(info) << "Exporting G-code...";
|
||||||
|
|
||||||
// Remove the old g-code if it exists.
|
// Remove the old g-code if it exists.
|
||||||
boost::nowide::remove(path);
|
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' +
|
std::string("Failed to rename the output G-code file from ") + path_tmp + " to " + path + '\n' +
|
||||||
"Is " + path_tmp + " locked?" + '\n');
|
"Is " + path_tmp + " locked?" + '\n');
|
||||||
|
|
||||||
|
BOOST_LOG_TRIVIAL(info) << "Exporting G-code finished";
|
||||||
|
|
||||||
// Write the profiler measurements to file
|
// Write the profiler measurements to file
|
||||||
PROFILE_UPDATE();
|
PROFILE_UPDATE();
|
||||||
PROFILE_OUTPUT(debug_out_path("gcode-export-profile.txt").c_str());
|
PROFILE_OUTPUT(debug_out_path("gcode-export-profile.txt").c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user