- all the logs done on Exception are now errors (with the exception of few places where the Exception is expected)

This commit is contained in:
Marius Stanciu
2020-12-31 05:56:46 +02:00
committed by Marius
parent da143eb29f
commit 9dfa3b497d
60 changed files with 392 additions and 391 deletions

View File

@@ -247,7 +247,7 @@ class ParseFont:
try:
name, family = ParseFont.get_font_name(font)
except Exception as e:
log.debug("ParseFont.get_fonts_by_types() --> Could not get the font name. %s" % str(e))
log.error("ParseFont.get_fonts_by_types() --> Could not get the font name. %s" % str(e))
continue
if 'Bold' in name and 'Italic' in name:
@@ -303,7 +303,7 @@ class ParseFont:
path_filename = regular_dict[font_name]
except Exception as e:
self.app.inform.emit('[ERROR_NOTCL] %s' % _("Font not supported, try another one."))
log.debug("[ERROR_NOTCL] Font Loading: %s" % str(e))
log.error("[ERROR_NOTCL] Font Loading: %s" % str(e))
return "flatcam font parse failed"
face = ft.Face(path_filename)