Skip to content

Commit

Permalink
Restrict Gunicorn configuration output to debug
Browse files Browse the repository at this point in the history
There's a `print()` command in gunicorn_conf.py that prints the custom
Gunicorn configuration not output by Gunicorn with `LOG_LEVEL="debug"`.

This commit will only run the `print()` command if `LOG_LEVEL="debug"`.
  • Loading branch information
br3ndonland committed Aug 20, 2020
1 parent 57f777b commit 00a3319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inboard/gunicorn_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@
"errorlog": errorlog,
"accesslog": accesslog,
}

print(f"[{Path(__file__).stem}] Additional configuration:", json.dumps(log_data))
if loglevel == "debug":
print(f"[{Path(__file__).stem}] Custom configuration:", json.dumps(log_data))

0 comments on commit 00a3319

Please # to comment.