debug log

This commit is contained in:
David Kocik 2022-02-09 11:09:14 +01:00
parent a4ecf2f2a6
commit f0ae3b6ae1

View File

@ -123,6 +123,11 @@ TagCheckResult tag_check_tech(const std::string& tag)
std::vector<std::string> allowed_tags = { "FFF", "MMU", "SLA" };
if (std::find(allowed_tags.begin(), allowed_tags.end(), tag) != allowed_tags.end()) {
const PrinterTechnology tech = wxGetApp().preset_bundle->printers.get_edited_preset().printer_technology();
BOOST_LOG_TRIVIAL(error) << "Technology: " << (int)tech;
if (tech == ptUnknown)
BOOST_LOG_TRIVIAL(error) << "Hint notifications tag_check_tech gets UNKNOWN Printer technology.";
if (tech == ptAny)
BOOST_LOG_TRIVIAL(error) << "Hint notifications tag_check_tech gets ANY Printer technology.";
if (tech == ptFFF) {
// MMU / FFF
bool is_mmu = wxGetApp().extruders_edited_cnt() > 1;