summaryrefslogtreecommitdiff
path: root/lib/extensions/break_apart.py
diff options
context:
space:
mode:
authorkarnigen <karnigen@gmail.com>2024-05-03 01:34:58 +0200
committerGitHub <noreply@github.com>2024-05-03 01:34:58 +0200
commitbf5c2dfd67fac98868f86276504715ecfe1c369a (patch)
tree3b6bd611f452156fab48201fe7c868536dcb3e2d /lib/extensions/break_apart.py
parentad2914284e8ef5f59c410018415dbb8d574586f8 (diff)
Kgn/logging revamp (#2720)
* update config files * rebase after electron remove * added toml to requirements * logging update * Unified use of the TOML format instead of INI [no ci] * Unified use of the TOML format instead of INI [no ci] * moving debug*.py to debug dir, moving some part for debugger [no ci] * use of alternate logging in some cases * updated debug logger [no ci] * logging update * updated notes * updated notes about logging * style check
Diffstat (limited to 'lib/extensions/break_apart.py')
-rw-r--r--lib/extensions/break_apart.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/extensions/break_apart.py b/lib/extensions/break_apart.py
index 581e49bc..b5104dc7 100644
--- a/lib/extensions/break_apart.py
+++ b/lib/extensions/break_apart.py
@@ -3,7 +3,6 @@
# Copyright (c) 2010 Authors
# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
-import logging
from copy import copy
import inkex
@@ -92,12 +91,7 @@ class BreakApart(InkstitchExtension):
return polygons
def geom_is_valid(self, geom):
- # Don't complain about invalid shapes, we just want to know
- logger = logging.getLogger('shapely.geos')
- level = logger.level
- logger.setLevel(logging.CRITICAL)
valid = geom.is_valid
- logger.setLevel(level)
return valid
def ensure_minimum_size(self, polygons, size):