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