2 Commits

Author SHA1 Message Date
d308fd662a logging, 4
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2024-01-31 15:05:58 +01:00
a9a8a36cb9 logging, 3
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2024-01-31 14:53:04 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ app.config.update({
}) })
oidc = OpenIDConnect(app) oidc = OpenIDConnect(app)
app.logger.handlers = logging.getLogger('gunicorn.error').handlers
def calculate_nutrition(food, weight): def calculate_nutrition(food, weight):
try: try:
@ -175,7 +175,7 @@ def get_database_entries():
if conn: if conn:
conn.close() conn.close()
app = ProxyFix(app, x_for=1, x_host=1) exposed_app = ProxyFix(app, x_for=1, x_host=1)

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
gunicorn 'Run:app' --bind 0.0.0.0:8080 --log-level=debug --workers=4 gunicorn 'Run:exposed_app' --bind 0.0.0.0:8080 --log-level=debug --workers=4