mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
3MF and AMF error reporting: Use boost::log instead of printf().
This commit is contained in:
parent
298097c814
commit
c2e956c6d1
2 changed files with 16 additions and 17 deletions
|
@ -22,6 +22,7 @@
|
|||
#include <boost/nowide/fstream.hpp>
|
||||
#include <boost/nowide/cstdio.hpp>
|
||||
#include <boost/spirit/include/karma.hpp>
|
||||
#include <boost/log/trivial.hpp>
|
||||
|
||||
#include <boost/property_tree/ptree.hpp>
|
||||
#include <boost/property_tree/xml_parser.hpp>
|
||||
|
@ -257,9 +258,8 @@ namespace Slic3r {
|
|||
public:
|
||||
void log_errors()
|
||||
{
|
||||
for (const std::string& error : m_errors) {
|
||||
printf("%s\n", error.c_str());
|
||||
}
|
||||
for (const std::string& error : m_errors)
|
||||
BOOST_LOG_TRIVIAL(error) << error;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue