FillBase: Use logging instead of printf

This commit is contained in:
Vojtech Bubnik 2022-08-02 13:23:30 +02:00
parent fa7debf49d
commit 6bf335409f

View File

@ -21,6 +21,8 @@
#include "FillAdaptive.hpp" #include "FillAdaptive.hpp"
#include "FillLightning.hpp" #include "FillLightning.hpp"
#include <boost/log/trivial.hpp>
// #define INFILL_DEBUG_OUTPUT // #define INFILL_DEBUG_OUTPUT
namespace Slic3r { namespace Slic3r {
@ -129,8 +131,8 @@ std::pair<float, Point> Fill::_infill_direction(const Surface *surface) const
float out_angle = this->angle; float out_angle = this->angle;
if (out_angle == FLT_MAX) { if (out_angle == FLT_MAX) {
//FIXME Vojtech: Add a warning? assert(false);
printf("Using undefined infill angle\n"); BOOST_LOG_TRIVIAL(error) << "Using undefined infill angle";
out_angle = 0.f; out_angle = 0.f;
} }