mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-01-09 06:18:05 +00:00
py-i2phosts-fetcher: stop using check_logger_options()
This commit is contained in:
parent
7550b01e05
commit
c4535f353a
@ -35,7 +35,6 @@ else:
|
|||||||
sys.path.insert(1, DJANGO_PROJECT_PATH)
|
sys.path.insert(1, DJANGO_PROJECT_PATH)
|
||||||
os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE
|
os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE
|
||||||
from web.lib.utils import get_logger
|
from web.lib.utils import get_logger
|
||||||
from web.lib.utils import check_logger_options
|
|
||||||
from web.extsources.models import ExternalSource
|
from web.extsources.models import ExternalSource
|
||||||
|
|
||||||
# configure logger
|
# configure logger
|
||||||
@ -43,7 +42,8 @@ if args.debug == True:
|
|||||||
log_level = 'debug'
|
log_level = 'debug'
|
||||||
log_file = None
|
log_file = None
|
||||||
else:
|
else:
|
||||||
log_file, log_level = check_logger_options(config)
|
log_level = config['log_level']
|
||||||
|
log_file = config['log_file']
|
||||||
log = get_logger(filename=log_file, log_level=log_level)
|
log = get_logger(filename=log_file, log_level=log_level)
|
||||||
|
|
||||||
# we want open urls through proxy
|
# we want open urls through proxy
|
||||||
|
Loading…
Reference in New Issue
Block a user