summaryrefslogtreecommitdiff
path: root/inkstitch.py
diff options
context:
space:
mode:
Diffstat (limited to 'inkstitch.py')
-rw-r--r--inkstitch.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/inkstitch.py b/inkstitch.py
index 1a7b1468..9b040265 100644
--- a/inkstitch.py
+++ b/inkstitch.py
@@ -19,6 +19,16 @@ ch.setFormatter(formatter)
logger.addHandler(ch)
+logger = logging.getLogger('shapely.geos')
+logger.setLevel(logging.DEBUG)
+shapely_errors = StringIO()
+ch = logging.StreamHandler(shapely_errors)
+ch.setLevel(logging.DEBUG)
+formatter = logging.Formatter('%(name)s - %(levelname)s - %(message)s')
+ch.setFormatter(formatter)
+logger.addHandler(ch)
+
+
parser = ArgumentParser()
parser.add_argument("--extension")
my_args, remaining_args = parser.parse_known_args()