- 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

@@ -362,7 +362,7 @@ class Excellon(Geometry):
try:
self.convert_units({"INCH": "IN", "METRIC": "MM"}[self.excellon_units])
except Exception as e:
self.app.log.warning("Units could not be converted: %s" % str(e))
self.app.log.error("Units could not be converted: %s" % str(e))
in_header = False
# for Allegro type of Excellons we reset name_tool variable so we can reuse it for toolchange
@@ -1081,7 +1081,7 @@ class Excellon(Geometry):
self.solid_geometry.append(poly)
except Exception as e:
self.app.log.debug("appParsers.ParseExcellon.Excellon.create_geometry() -> "
self.app.log.error("appParsers.ParseExcellon.Excellon.create_geometry() -> "
"Excellon geometry creation failed due of ERROR: %s" % str(e))
return "fail"