Skip to content
Snippets Groups Projects
Commit ee1c5d07 authored by Erik Reid's avatar Erik Reid
Browse files

added logging setup for worker proc

parent 57c8e33f
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,12 @@ from inventory_provider import config
from inventory_provider import juniper, snmp
from inventory_provider import constants
logging.basicConfig(level=logging.WARNING)
logging.getLogger(constants.SNMP_LOGGER_NAME).setLevel(logging.INFO)
logging.getLogger(constants.TASK_LOGGER_NAME).setLevel(logging.INFO)
logging.getLogger(constants.JUNIPER_LOGGER_NAME).setLevel(logging.DEBUG)
logging.getLogger(constants.DATABASE_LOGGER_NAME).setLevel(logging.DEBUG)
class InventoryTask(Task):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment