- most of the logging (except in the Editors) is now done by the AppLogging class
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user