diff --git a/common/variable.py b/common/variable.py index 779a801..f4f1528 100644 --- a/common/variable.py +++ b/common/variable.py @@ -38,8 +38,8 @@ def _read_config(key): except: return None -debug_mode = _read_config("common.debug_mode") -log_length_limit = _read_config("common.log_length_limit") +debug_mode = _read_config("common.debug_mode") if _read_config("common.debug_mode") else False +log_length_limit = _read_config("common.log_length_limit") if _read_config("common.log_length_limit") else 500 running = True config = {} workdir = os.getcwd()