- 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

@@ -730,7 +730,7 @@ class ExcellonObject(FlatCAMObj, Excellon):
excellon_code += "X{xform}Y{yform}\n".format(xform=exc_x_formatted,
yform=exc_y_formatted)
except Exception as e:
self.app.log.debug('ExcellonObject.export_excellon() drills -> %s' % str(e))
self.app.log.error('ExcellonObject.export_excellon() drills -> %s' % str(e))
# slots processing
try:
@@ -830,7 +830,7 @@ class ExcellonObject(FlatCAMObj, Excellon):
xstop=stop_slot_x_formatted, ystop=stop_slot_y_formatted
)
except Exception as e:
self.app.log.debug('ExcellonObject.export_excellon() slots -> %s' % str(e))
self.app.log.error('ExcellonObject.export_excellon() slots -> %s' % str(e))
if not has_drills and not has_slots:
self.app.log.debug("ExcellonObject.export_excellon() --> Excellon Object is empty: no drills, no slots.")