- most of the logging (except in the Editors) is now done by the AppLogging class
This commit is contained in:
@@ -240,7 +240,7 @@ class QRCode(AppTool):
|
||||
try:
|
||||
self.grb_object = model_index.internalPointer().obj
|
||||
except Exception as e:
|
||||
log.error("QRCode.execute() --> %s" % str(e))
|
||||
self.app.log.error("QRCode.execute() --> %s" % str(e))
|
||||
self.app.inform.emit('[WARNING_NOTCL] %s' % _("There is no Gerber object loaded ..."))
|
||||
return
|
||||
|
||||
@@ -286,7 +286,7 @@ class QRCode(AppTool):
|
||||
a, b, c, d = self.qrcode_utility_geometry.bounds
|
||||
self.box_poly = box(minx=a, miny=b, maxx=c, maxy=d)
|
||||
except Exception as ee:
|
||||
log.error("QRCode.make() bounds error --> %s" % str(ee))
|
||||
self.app.log.error("QRCode.make() bounds error --> %s" % str(ee))
|
||||
|
||||
app_obj.call_source = 'qrcode_tool'
|
||||
app_obj.inform.emit(_("Click on the DESTINATION point ..."))
|
||||
@@ -388,7 +388,7 @@ class QRCode(AppTool):
|
||||
self.grb_object.options['xmax'] = c
|
||||
self.grb_object.options['ymax'] = d
|
||||
except Exception as e:
|
||||
log.error("QRCode.make() bounds error --> %s" % str(e))
|
||||
self.app.log.error("QRCode.make() bounds error --> %s" % str(e))
|
||||
|
||||
try:
|
||||
for geo in self.qrcode_geometry:
|
||||
|
||||
Reference in New Issue
Block a user