netbox-agent/netbox_agent/logging.py
2020-02-02 20:24:01 +01:00

10 lines
193 B
Python

import logging
from netbox_agent.config import config
logger = logging.getLogger()
if config.log_level == 'debug':
logger.setLevel(logging.DEBUG)
else:
logger.setLevel(logging.INFO)