- 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:
Marius Stanciu
2020-12-31 05:56:46 +02:00
committed by Marius
parent da143eb29f
commit 9dfa3b497d
60 changed files with 392 additions and 391 deletions

View File

@@ -175,7 +175,7 @@ def path2shapely(path, object_type, res=1.0, units='MM', factor=1.0):
try:
rings = MultiLineString(rings)
except Exception as e:
log.debug("ParseSVG.path2shapely() MString --> %s" % str(e))
log.error("ParseSVG.path2shapely() MString --> %s" % str(e))
return None
if len(rings) > 0:
@@ -567,7 +567,7 @@ def getsvgtext(node, object_type, app, units='MM'):
geo = [(scale(g, 1.0, -1.0)) for g in geo]
except Exception as e:
log.debug(str(e))
log.error(str(e))
else:
geo = None