2019-08-06 17:59:46 +02:00
|
|
|
import logging
|
|
|
|
|
2019-08-07 10:32:23 +02:00
|
|
|
from netbox_agent.config import LOG_LEVEL
|
2019-08-06 17:59:46 +02:00
|
|
|
|
|
|
|
|
2019-08-07 10:32:23 +02:00
|
|
|
logger = logging.getLogger()
|
2019-08-06 17:59:46 +02:00
|
|
|
|
2019-08-07 10:32:23 +02:00
|
|
|
if LOG_LEVEL == 'debug':
|
|
|
|
logger.setLevel(logging.DEBUG)
|
|
|
|
else:
|
|
|
|
logger.setLevel(logging.INFO)
|