netbox-agent/netbox_agent/logging.py
2019-09-03 13:16:37 +02:00

11 lines
194 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)