浏览代码

web: make log level configurable through env

Shiv Tyagi 1 年之前
父节点
当前提交
0dfcf2e93b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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']
     }
 })