Ver Fonte

web: make log level configurable through env

Shiv Tyagi há 1 ano atrás
pai
commit
0dfcf2e93b
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      web/app.py

+ 1 - 1
web/app.py

@@ -30,7 +30,7 @@ dictConfig({
         'formatter': 'default'
     }},
     'root': {
-        'level': 'INFO',
+        'level': os.getenv('CBS_LOG_LEVEL', default='INFO'),
         'handlers': ['wsgi']
     }
 })