Skip to content

Commit

Permalink
fixed config module usage
Browse files Browse the repository at this point in the history
  • Loading branch information
shitwolfymakes committed Jun 3, 2022
1 parent 4edb87e commit 1e10d1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arm/ripper/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ def setup_logging(job):
# Remove any root loggers
clean_loggers()
# Debug formatting
if cfg['LOGLEVEL'] == "DEBUG":
if cfg.arm_config['LOGLEVEL'] == "DEBUG":
logging.basicConfig(filename=log_full,
format='[%(asctime)s] %(levelname)s ARM: %(module)s.%(funcName)s %(message)s',
datefmt=cfg.arm_config['DATE_FORMAT'], level=cfg['LOGLEVEL'])
datefmt=cfg.arm_config['DATE_FORMAT'], level=cfg.arm_config['LOGLEVEL'])
else:
logging.basicConfig(filename=log_full, format='[%(asctime)s] %(levelname)s ARM: %(message)s',
datefmt=cfg.arm_config['DATE_FORMAT'], level=cfg['LOGLEVEL'])
datefmt=cfg.arm_config['DATE_FORMAT'], level=cfg.arm_config['LOGLEVEL'])

# These stop apprise and others spitting our secret keys if users post log online
logging.getLogger("apprise").setLevel(logging.WARN)
Expand Down

0 comments on commit 1e10d1f

Please sign in to comment.