- 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:
@@ -137,7 +137,7 @@ class Properties(AppTool):
|
||||
try:
|
||||
self.app.delete_selection_shape()
|
||||
except Exception as e:
|
||||
log.debug("ToolProperties.Properties.properties() --> %s" % str(e))
|
||||
log.error("ToolProperties.Properties.properties() --> %s" % str(e))
|
||||
|
||||
# populate the properties items
|
||||
for obj in obj_list:
|
||||
@@ -205,7 +205,7 @@ class Properties(AppTool):
|
||||
],
|
||||
True)
|
||||
except Exception as e:
|
||||
log.debug("Properties.addItems() --> %s" % str(e))
|
||||
log.error("Properties.addItems() --> %s" % str(e))
|
||||
|
||||
self.treeWidget.addChild(obj_name, [obj.options['name']])
|
||||
|
||||
@@ -226,7 +226,7 @@ class Properties(AppTool):
|
||||
length = abs(xmax - xmin)
|
||||
width = abs(ymax - ymin)
|
||||
except Exception as ee:
|
||||
log.debug("PropertiesTool.addItems() -> calculate dimensions --> %s" % str(ee))
|
||||
log.error("PropertiesTool.addItems() -> calculate dimensions --> %s" % str(ee))
|
||||
|
||||
# calculate box area
|
||||
if self.app.defaults['units'].lower() == 'mm':
|
||||
@@ -257,7 +257,7 @@ class Properties(AppTool):
|
||||
xmax.append(x1)
|
||||
ymax.append(y1)
|
||||
except Exception as ee:
|
||||
log.debug("PropertiesTool.addItems() --> %s" % str(ee))
|
||||
log.error("PropertiesTool.addItems() --> %s" % str(ee))
|
||||
|
||||
try:
|
||||
for tool_k in obj_prop.cnc_tools:
|
||||
@@ -267,7 +267,7 @@ class Properties(AppTool):
|
||||
xmax.append(x1)
|
||||
ymax.append(y1)
|
||||
except Exception as ee:
|
||||
log.debug("PropertiesTool.addItems() --> %s" % str(ee))
|
||||
log.error("PropertiesTool.addItems() --> %s" % str(ee))
|
||||
else:
|
||||
try:
|
||||
for tool_k in obj_prop.tools:
|
||||
@@ -277,7 +277,7 @@ class Properties(AppTool):
|
||||
xmax.append(x1)
|
||||
ymax.append(y1)
|
||||
except Exception as ee:
|
||||
log.debug("PropertiesTool.addItems() --> %s" % str(ee))
|
||||
log.error("PropertiesTool.addItems() --> %s" % str(ee))
|
||||
|
||||
try:
|
||||
xmin = min(xmin)
|
||||
@@ -311,7 +311,7 @@ class Properties(AppTool):
|
||||
copper_area += geo_tools.area
|
||||
copper_area /= 100
|
||||
except Exception as err:
|
||||
log.debug("Properties.addItems() --> %s" % str(err))
|
||||
log.error("Properties.addItems() --> %s" % str(err))
|
||||
|
||||
area_chull = 0.0
|
||||
if obj_prop.kind.lower() != 'cncjob':
|
||||
@@ -340,7 +340,7 @@ class Properties(AppTool):
|
||||
area_chull = max(area_chull)
|
||||
except Exception as er:
|
||||
area_chull = None
|
||||
log.debug("Properties.addItems() --> %s" % str(er))
|
||||
log.error("Properties.addItems() --> %s" % str(er))
|
||||
|
||||
if self.app.defaults['units'].lower() == 'mm' and area_chull:
|
||||
area_chull = area_chull / 100
|
||||
|
||||
Reference in New Issue
Block a user