- 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

@@ -1814,7 +1814,7 @@ class ToolPunchGerber(AppTool, Gerber):
self.app.plotcanvas.graph_event_disconnect(self.mm)
self.app.plotcanvas.graph_event_disconnect(self.kp)
except Exception as e:
log.error("ToolPaint.on_key_press() _1 --> %s" % str(e))
self.app.log.error("ToolPaint.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)
@@ -1838,7 +1838,7 @@ class ToolPunchGerber(AppTool, Gerber):
self.app.tool_shapes.clear(update=True)
except Exception as e:
log.error("ToolPaint.on_key_press() _2 --> %s" % str(e))
self.app.log.error("ToolPaint.on_key_press() _2 --> %s" % str(e))
self.app.mr = self.app.plotcanvas.graph_event_connect('mouse_release',
self.app.on_mouse_click_release_over_plot)