- 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

@@ -316,7 +316,7 @@ class Panelize(AppTool):
try:
panel_source_obj = self.app.collection.get_by_name(str(name))
except Exception as e:
log.error("Panelize.on_panelize() --> %s" % str(e))
self.app.log.error("Panelize.on_panelize() --> %s" % str(e))
self.app.inform.emit('[ERROR_NOTCL] %s: %s' % (_("Could not retrieve object"), name))
return
@@ -330,7 +330,7 @@ class Panelize(AppTool):
try:
box = self.app.collection.get_by_name(boxname)
except Exception as e:
log.error("Panelize.on_panelize() --> %s" % str(e))
self.app.log.error("Panelize.on_panelize() --> %s" % str(e))
self.app.inform.emit('[ERROR_NOTCL] %s: %s' % (_("Could not retrieve object"), boxname))
return
@@ -423,7 +423,7 @@ class Panelize(AppTool):
try:
obj_fin.options[option] = panel_source_obj.options[option]
except KeyError:
log.warning("Failed to copy option. %s" % str(option))
app_obj.log.warning("Failed to copy option. %s" % str(option))
# calculate the total number of drills and slots
geo_len_drills = 0