- 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

@@ -295,7 +295,7 @@ class ToolFollow(AppTool, Gerber):
float(eval(dia)) for dia in temp_tools if dia != ''
]
except Exception as e:
log.error("ToolFollow.follow_geo -> At least one tool diameter needed. -> %s" % str(e))
self.app.log.error("ToolFollow.follow_geo -> At least one tool diameter needed. -> %s" % str(e))
return 'fail'
# store here the default data for Geometry Data
@@ -360,7 +360,7 @@ class ToolFollow(AppTool, Gerber):
float(eval(dia)) for dia in temp_tools if dia != ''
]
except Exception as e:
log.error("ToolFollow.follow_geo -> At least one tool diameter needed. -> %s" % str(e))
app_obj.log.error("ToolFollow.follow_geo -> At least one tool diameter needed. -> %s" % str(e))
return 'fail'
# store here the default data for Geometry Data
@@ -642,7 +642,7 @@ class ToolFollow(AppTool, Gerber):
self.app.plotcanvas.graph_event_disconnect(self.mm)
self.app.plotcanvas.graph_event_disconnect(self.kp)
except Exception as e:
log.error("ToolFollow.on_key_press() _1 --> %s" % str(e))
self.app.log.error("ToolFollow.on_key_press() _1 --> %s" % str(e))
self.app.mp = self.app.plotcanvas.graph_event_connect('mouse_press',
self.app.on_mouse_click_over_plot)