diff --git a/inventory_provider/app.py b/inventory_provider/app.py
index 689f2d3ef62f62b8b284e500e54f77cfe3dcd4bd..7e55c5918b28f9258938742e65e750f6f241c082 100644
--- a/inventory_provider/app.py
+++ b/inventory_provider/app.py
@@ -7,16 +7,12 @@ import sys
 import inventory_provider
 from inventory_provider import constants
 
-logging.basicConfig(level=logging.WARNING)
+logging.basicConfig(stream=sys.stderr, level=logging.WARNING)
 logging.getLogger(constants.SNMP_LOGGER_NAME).setLevel(logging.DEBUG)
 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)
 
-logging.basicConfig(
-    stream=sys.stderr,
-    level=logging.DEBUG)
-
 app = inventory_provider.create_app()
 
 if __name__ == "__main__":