2019-08-06 17:59:46 +02:00
|
|
|
import logging
|
|
|
|
|
2019-09-03 13:16:37 +02:00
|
|
|
from netbox_agent.config import config
|
2019-08-06 17:59:46 +02:00
|
|
|
|
2019-08-07 10:32:23 +02:00
|
|
|
logger = logging.getLogger()
|
2020-04-19 12:28:49 +02:00
|
|
|
if config.log_level.lower() == 'debug':
|
2019-08-07 10:32:23 +02:00
|
|
|
logger.setLevel(logging.DEBUG)
|
|
|
|
else:
|
|
|
|
logger.setLevel(logging.INFO)
|