- 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

@@ -204,7 +204,7 @@ class AppObject(QtCore.QObject):
obj.options['xmax'] = xmax
obj.options['ymax'] = ymax
except Exception as e:
self.app.log.warning("AppObject.new_object() -> The object has no bounds properties. %s" % str(e))
self.app.log.error("AppObject.new_object() -> The object has no bounds properties. %s" % str(e))
return "fail"
self.app.log.debug("Moving new object back to main thread.")
@@ -321,7 +321,7 @@ class AppObject(QtCore.QObject):
obj.outline_color = self.app.defaults["gerber_plot_line"]
obj.fill_color = self.app.defaults["gerber_plot_fill"]
except Exception as e:
self.app.log.warning("AppObject.new_object() -> setting colors error. %s" % str(e))
self.app.log.error("AppObject.new_object() -> setting colors error. %s" % str(e))
# #############################################################################################################
# update the SHELL auto-completer model with the name of the new object