forked from p15670423/monkey
Second Fix: info log wasn't being created on some envs
Changed the path to the json config file to be a relative generic path
This commit is contained in:
parent
bdda578920
commit
53ed6004b5
|
@ -1,6 +1,7 @@
|
|||
from __future__ import print_function # In python 2.7
|
||||
|
||||
import os
|
||||
import os.path
|
||||
import sys
|
||||
import time
|
||||
import logging
|
||||
|
@ -12,7 +13,8 @@ if BASE_PATH not in sys.path:
|
|||
|
||||
from cc.island_logger import json_setup_logging
|
||||
# This is here in order to catch EVERYTHING, some functions are being called on imports the log init needs to be on top.
|
||||
json_setup_logging(default_path='.\\monkey_island\\cc\\island_logger_default_config.json', default_level=logging.DEBUG)
|
||||
json_setup_logging(default_path=os.path.join(BASE_PATH, 'cc', 'island_logger_default_config.json'),
|
||||
default_level=logging.DEBUG)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
from cc.app import init_app
|
||||
|
|
Loading…
Reference in New Issue