- most of the logging (except in the Editors) is now done by the AppLogging class

This commit is contained in:
Marius Stanciu
2022-01-31 02:14:14 +02:00
committed by Marius
parent fa25644f8f
commit 056ff05e29
39 changed files with 373 additions and 371 deletions

View File

@@ -288,7 +288,7 @@ class ToolFiducials(AppTool):
try:
self.grb_object = model_index.internalPointer().obj
except Exception as e:
log.error("ToolFiducials.execute() --> %s" % str(e))
self.app.log.error("ToolFiducials.execute() --> %s" % str(e))
self.app.inform.emit('[WARNING_NOTCL] %s' % _("There is no Gerber object loaded ..."))
self.app.ui.notebook.setDisabled(False)
self.app.call_source = "app"
@@ -590,7 +590,7 @@ class ToolFiducials(AppTool):
try:
self.sm_object = model_index.internalPointer().obj
except Exception as e:
log.error("ToolFiducials.add_soldermask_opening() --> %s" % str(e))
self.app.log.error("ToolFiducials.add_soldermask_opening() --> %s" % str(e))
self.app.inform.emit('[WARNING_NOTCL] %s' % _("There is no Gerber object loaded ..."))
return
@@ -711,7 +711,7 @@ class ToolFiducials(AppTool):
copper_obj.options['xmax'] = c
copper_obj.options['ymax'] = d
except Exception as e:
log.error("ToolFiducials.on_exit() copper_obj bounds error --> %s" % str(e))
self.app.log.error("ToolFiducials.on_exit() copper_obj bounds error --> %s" % str(e))
for ob_name in self.sm_obj_set:
try: