diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-04-25 17:01:12 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-04-25 17:01:12 +0200 |
commit | 152011d11e032a7297de855724d74da83fa6f1cb (patch) | |
tree | 0959ab7338681f63723d94fffb7c39a66cf561f9 /api/log.py | |
parent | f020b861915d7269a44f73c417626879c8e0176b (diff) |
added version number from package.json and commit hash to footer
Diffstat (limited to 'api/log.py')
-rw-r--r-- | api/log.py | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -5,12 +5,8 @@ from os import environ load_dotenv() # logging module wrapper (same as db.py) -log_level = [ - None, - logging.ERROR, - logging.WARNING, - logging.INFO - ][int(environ["CONNECT4_LOG_LEVEL"])] +log_level = [None, logging.ERROR, logging.WARNING, + logging.INFO][int(environ["CONNECT4_LOG_LEVEL"])] logging.basicConfig(format="[ %(levelname)s ]: %(message)s", level=log_level) |