- 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:
@@ -152,7 +152,7 @@ class ToolOptimal(AppTool):
|
||||
try:
|
||||
fcobj = model_index.internalPointer().obj
|
||||
except Exception as e:
|
||||
log.debug("ToolOptimal.find_minimum_distance() --> %s" % str(e))
|
||||
log.error("ToolOptimal.find_minimum_distance() --> %s" % str(e))
|
||||
self.app.inform.emit('[WARNING_NOTCL] %s' % _("There is no Gerber object loaded ..."))
|
||||
return
|
||||
|
||||
@@ -252,7 +252,7 @@ class ToolOptimal(AppTool):
|
||||
app_obj.inform.emit('[success] %s' % _("Optimal Tool. Finished successfully."))
|
||||
except Exception as ee:
|
||||
proc.done()
|
||||
log.debug(str(ee))
|
||||
log.error(str(ee))
|
||||
return
|
||||
proc.done()
|
||||
|
||||
@@ -268,7 +268,7 @@ class ToolOptimal(AppTool):
|
||||
else:
|
||||
return 'fail'
|
||||
except Exception as e:
|
||||
log.debug("ToolOptimal.on_locate_position() --> first try %s" % str(e))
|
||||
log.error("ToolOptimal.on_locate_position() --> first try %s" % str(e))
|
||||
self.app.inform.emit("[ERROR_NOTCL] The selected text is no valid location in the format "
|
||||
"((x0, y0), (x1, y1)).")
|
||||
return
|
||||
@@ -282,7 +282,7 @@ class ToolOptimal(AppTool):
|
||||
float('%.*f' % (self.decimals, (min(loc_1[1], loc_2[1]) + (abs(dy) / 2)))))
|
||||
self.app.on_jump_to(custom_location=loc)
|
||||
except Exception as e:
|
||||
log.debug("ToolOptimal.on_locate_position() --> sec try %s" % str(e))
|
||||
log.error("ToolOptimal.on_locate_position() --> sec try %s" % str(e))
|
||||
return
|
||||
|
||||
def on_update_text(self, data):
|
||||
@@ -381,7 +381,7 @@ class ToolOptimal(AppTool):
|
||||
else:
|
||||
return
|
||||
except Exception as e:
|
||||
log.debug("ToolOptimal.on_locate_sec_position() --> first try %s" % str(e))
|
||||
log.error("ToolOptimal.on_locate_sec_position() --> first try %s" % str(e))
|
||||
self.app.inform.emit("[ERROR_NOTCL] The selected text is no valid location in the format "
|
||||
"((x0, y0), (x1, y1)).")
|
||||
return
|
||||
@@ -395,7 +395,7 @@ class ToolOptimal(AppTool):
|
||||
float('%.*f' % (self.decimals, (min(loc_1[1], loc_2[1]) + (abs(dy) / 2)))))
|
||||
self.app.on_jump_to(custom_location=loc)
|
||||
except Exception as e:
|
||||
log.debug("ToolOptimal.on_locate_sec_position() --> sec try %s" % str(e))
|
||||
log.error("ToolOptimal.on_locate_sec_position() --> sec try %s" % str(e))
|
||||
return
|
||||
|
||||
def reset_fields(self):
|
||||
|
||||
Reference in New Issue
Block a user