diff --git a/common/log.py b/common/log.py index db1f2dda..2510bcb2 100644 --- a/common/log.py +++ b/common/log.py @@ -2,18 +2,12 @@ import logging import sys -import config SWITCH = True def _get_logger(): - global SWITCH - config.load_config() - SWITCH = config.conf().get("logger").get("switch", True) - log = logging.getLogger('log') - level = config.conf().get("logger").get("level", logging.INFO) - log.setLevel(level) + log.setLevel(logging.INFO) console_handle = logging.StreamHandler(sys.stdout) console_handle.setFormatter(logging.Formatter('[%(levelname)s][%(asctime)s][%(filename)s:%(lineno)d] - %(message)s', datefmt='%Y-%m-%d %H:%M:%S')) diff --git a/config-template.json b/config-template.json index 6e884702..7cdfa72b 100644 --- a/config-template.json +++ b/config-template.json @@ -1,8 +1,4 @@ { - "logger": { - "switch": true, - "level": "INFO" - }, "model": { "type" : "chatgpt", "openai": {