[fix] that didn't work, set log level to CRITICAL

This commit is contained in:
Al
2017-02-15 14:06:57 -05:00
parent 26bf617a06
commit be6f48f109
2 changed files with 5 additions and 1 deletions

View File

@@ -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)))

View File

@@ -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)))