diff --git a/scripts/geodata/openaddresses/openaddresses_training_data.py b/scripts/geodata/openaddresses/openaddresses_training_data.py index 3d962b46..144d682b 100644 --- a/scripts/geodata/openaddresses/openaddresses_training_data.py +++ b/scripts/geodata/openaddresses/openaddresses_training_data.py @@ -7,9 +7,13 @@ This script generates several training sets from OpenAddresses. ''' import argparse +import logging import os import sys +from shapely.geos import LOG as shapely_geos_logger +shapely_geos_logger.setLevel(logging.CRITICAL) + this_dir = os.path.realpath(os.path.dirname(__file__)) sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir))) diff --git a/scripts/geodata/osm/osm_address_training_data.py b/scripts/geodata/osm/osm_address_training_data.py index ce7b7a61..36b6c516 100644 --- a/scripts/geodata/osm/osm_address_training_data.py +++ b/scripts/geodata/osm/osm_address_training_data.py @@ -51,7 +51,7 @@ from lxml import etree from itertools import ifilter, chain, combinations from shapely.geos import LOG as shapely_geos_logger -shapely_geos_logger.propagate = False +shapely_geos_logger.setLevel(logging.CRITICAL) this_dir = os.path.realpath(os.path.dirname(__file__)) sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir)))