- all the logs done on Exception are now errors (with the exception of few places where the Exception is expected)
This commit is contained in:
@@ -93,7 +93,7 @@ class TclCommandCopperClear(TclCommand):
|
||||
try:
|
||||
obj = self.app.collection.get_by_name(str(name))
|
||||
except Exception as e:
|
||||
log.debug("TclCommandCopperClear.execute() --> %s" % str(e))
|
||||
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
|
||||
|
||||
@@ -280,7 +280,7 @@ class TclCommandCopperClear(TclCommand):
|
||||
try:
|
||||
box_obj = self.app.collection.get_by_name(str(box_name))
|
||||
except Exception as e:
|
||||
log.debug("TclCommandCopperClear.execute() --> %s" % str(e))
|
||||
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
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ class TclCommandCutout(TclCommand):
|
||||
try:
|
||||
obj = self.app.collection.get_by_name(str(name))
|
||||
except Exception as e:
|
||||
log.debug("TclCommandCutout.execute() --> %s" % str(e))
|
||||
log.error("TclCommandCutout.execute() --> %s" % str(e))
|
||||
return "Could not retrieve object: %s" % name
|
||||
|
||||
def geo_init_me(geo_obj, app_obj):
|
||||
|
||||
@@ -176,7 +176,7 @@ class TclCommandGeoCutout(TclCommandSignaled):
|
||||
try:
|
||||
cutout_obj = self.app.collection.get_by_name(str(name))
|
||||
except Exception as e:
|
||||
log.debug("TclCommandGeoCutout --> %s" % str(e))
|
||||
log.error("TclCommandGeoCutout --> %s" % str(e))
|
||||
return "Could not retrieve object: %s" % name
|
||||
|
||||
if 0 in {dia}:
|
||||
@@ -308,7 +308,7 @@ class TclCommandGeoCutout(TclCommandSignaled):
|
||||
try:
|
||||
geo = cutout_obj.isolation_geometry((dia / 2), iso_type=0, corner=2, follow=None)
|
||||
except Exception as exc:
|
||||
log.debug("TclCommandGeoCutout.execute() --> %s" % str(exc))
|
||||
log.error("TclCommandGeoCutout.execute() --> %s" % str(exc))
|
||||
return 'fail'
|
||||
|
||||
if gaps_u == 8 or gaps_u == '2lr':
|
||||
|
||||
@@ -107,7 +107,7 @@ class TclCommandHelp(TclCommand):
|
||||
else:
|
||||
cnt += 1
|
||||
except Exception as err:
|
||||
self.app.log.debug("tclCommands.TclCommandHelp() when run as 'help' --> %s" % str(err))
|
||||
self.app.log.error("tclCommands.TclCommandHelp() when run as 'help' --> %s" % str(err))
|
||||
displayed_text = ['> %s' % cmd for cmd in sorted(self.app.shell.tcl_commands_storage)]
|
||||
|
||||
cmd_enum += '<br>'.join(displayed_text)
|
||||
|
||||
@@ -95,7 +95,7 @@ class TclCommandPaint(TclCommand):
|
||||
try:
|
||||
obj = self.app.collection.get_by_name(str(name))
|
||||
except Exception as e:
|
||||
log.debug("TclCommandPaint.execute() --> %s" % str(e))
|
||||
log.error("TclCommandPaint.execute() --> %s" % str(e))
|
||||
self.raise_tcl_error("%s: %s" % (_("Could not retrieve object"), name))
|
||||
return "Could not retrieve object: %s" % name
|
||||
|
||||
@@ -284,7 +284,7 @@ class TclCommandPaint(TclCommand):
|
||||
try:
|
||||
box_obj = self.app.collection.get_by_name(str(box_name))
|
||||
except Exception as e:
|
||||
log.debug("TclCommandPaint.execute() --> %s" % str(e))
|
||||
log.error("TclCommandPaint.execute() --> %s" % str(e))
|
||||
self.raise_tcl_error("%s: %s" % (_("Could not retrieve object"), name))
|
||||
return "Could not retrieve object: %s" % name
|
||||
|
||||
|
||||
@@ -222,8 +222,8 @@ class TclCommandPanelize(TclCommand):
|
||||
try:
|
||||
obj_fin.options[option] = obj.options[option]
|
||||
except Exception as e:
|
||||
app_obj.log.warning("Failed to copy option: %s" % str(option))
|
||||
app_obj.log.debug("TclCommandPanelize.execute().panelize2() --> %s" % str(e))
|
||||
app_obj.log.error("Failed to copy option: %s" % str(option))
|
||||
app_obj.log.error("TclCommandPanelize.execute().panelize2() --> %s" % str(e))
|
||||
|
||||
for row in range(rows):
|
||||
currentx = 0.0
|
||||
@@ -303,7 +303,7 @@ class TclCommandPanelize(TclCommand):
|
||||
panelize_2()
|
||||
app_obj.inform.emit('[success] %s' % _("Done."))
|
||||
except Exception as ee:
|
||||
log.debug(str(ee))
|
||||
log.error(str(ee))
|
||||
return
|
||||
|
||||
self.app.collection.promise(outname)
|
||||
|
||||
@@ -77,7 +77,7 @@ class TclCommandScale(TclCommand):
|
||||
try:
|
||||
obj_to_scale = self.app.collection.get_by_name(name)
|
||||
except Exception as e:
|
||||
log.debug("TclCommandCopperClear.execute() --> %s" % str(e))
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user