- most of the logging (except in the Editors) is now done by the AppLogging class
This commit is contained in:
@@ -60,7 +60,7 @@ class TclCommandBounds(TclCommand):
|
||||
try:
|
||||
obj_list = [str(obj_name) for obj_name in str(args['objects']).split(",") if obj_name != '']
|
||||
except AttributeError as e:
|
||||
log.debug("TclCommandBounds.execute --> %s" % str(e))
|
||||
self.app.log.debug("TclCommandBounds.execute --> %s" % str(e))
|
||||
|
||||
if not obj_list:
|
||||
self.raise_tcl_error('%s: %s:' % (
|
||||
|
||||
@@ -93,7 +93,7 @@ class TclCommandCopperClear(TclCommand):
|
||||
try:
|
||||
obj = self.app.collection.get_by_name(str(name))
|
||||
except Exception as e:
|
||||
log.error("TclCommandCopperClear.execute() --> %s" % str(e))
|
||||
self.app.log.error("TclCommandCopperClear.execute() --> %s" % str(e))
|
||||
self.raise_tcl_error("%s: %s" % (_("Could not retrieve object"), name))
|
||||
return "Could not retrieve object: %s" % name
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ class TclCommandGeoCutout(TclCommandSignaled):
|
||||
if type(target) == LineString or type(target) == LinearRing:
|
||||
diffs.append(target.difference(toolgeo))
|
||||
else:
|
||||
log.warning("Not implemented.")
|
||||
self.app.log.warning("Not implemented.")
|
||||
return unary_union(diffs)
|
||||
|
||||
if 'name' in args:
|
||||
|
||||
@@ -87,7 +87,7 @@ class TclCommandSetOrigin(TclCommand):
|
||||
try:
|
||||
location = [float(eval(coord)) for coord in str(args['loc']).split(",") if coord != '']
|
||||
except AttributeError as e:
|
||||
log.debug("TclCommandSetOrigin.execute --> %s" % str(e))
|
||||
self.app.log.debug("TclCommandSetOrigin.execute --> %s" % str(e))
|
||||
location = (0, 0)
|
||||
|
||||
if len(location) != 2:
|
||||
|
||||
Reference in New Issue
Block a user