[fix] that didn't work, set log level to CRITICAL
This commit is contained in:
@@ -7,9 +7,13 @@ This script generates several training sets from OpenAddresses.
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
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__))
|
this_dir = os.path.realpath(os.path.dirname(__file__))
|
||||||
sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir)))
|
sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir)))
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ from lxml import etree
|
|||||||
from itertools import ifilter, chain, combinations
|
from itertools import ifilter, chain, combinations
|
||||||
|
|
||||||
from shapely.geos import LOG as shapely_geos_logger
|
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__))
|
this_dir = os.path.realpath(os.path.dirname(__file__))
|
||||||
sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir)))
|
sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir)))
|
||||||
|
|||||||
Reference in New Issue
Block a user