From 26bf617a062a654718cf10a2afa8188fafdd201c Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 15 Feb 2017 14:00:51 -0500 Subject: [PATCH] [fix] prevent Shapely from logging to console --- scripts/geodata/osm/osm_address_training_data.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/geodata/osm/osm_address_training_data.py b/scripts/geodata/osm/osm_address_training_data.py index 75e7444d..ce7b7a61 100644 --- a/scripts/geodata/osm/osm_address_training_data.py +++ b/scripts/geodata/osm/osm_address_training_data.py @@ -50,6 +50,9 @@ from collections import defaultdict, OrderedDict from lxml import etree from itertools import ifilter, chain, combinations +from shapely.geos import LOG as shapely_geos_logger +shapely_geos_logger.propagate = False + this_dir = os.path.realpath(os.path.dirname(__file__)) sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir)))