Skip to content

Commit

Permalink
Reduce logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bertybuttface committed Apr 10, 2024
1 parent 1e6852b commit 986ad22
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ def __init__(self, app):
self.app = app

def __call__(self, environ, start_response):
from pprint import pprint

pprint(environ)

script_name = environ.get("HTTP_X_INGRESS_PATH", "")
print(f"HTTP_X_INGRESS_PATH: {script_name}", flush=True)
if script_name:
environ["SCRIPT_NAME"] = script_name
else:
print(f"HTTP_X_INGRESS_PATH: {script_name}", flush=True)
return self.app(environ, start_response)


Expand Down

0 comments on commit 986ad22

Please sign in to comment.