11 lines
190 B
Python
11 lines
190 B
Python
import logging
|
|
|
|
from netbox_agent.config import LOG_LEVEL
|
|
|
|
|
|
logger = logging.getLogger()
|
|
|
|
if LOG_LEVEL == 'debug':
|
|
logger.setLevel(logging.DEBUG)
|
|
else:
|
|
logger.setLevel(logging.INFO)
|