Skip to content

Commit

Permalink
Disable translogger middleware by default, use gunicorn.access (actually
Browse files Browse the repository at this point in the history
uvicorn.access) for transaction logging.
  • Loading branch information
natefoo committed Aug 16, 2022
1 parent 71ec603 commit d1b3734
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/galaxy/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@
"level": "INFO",
"qualname": "botocore",
},
"gunicorn.access": {
"level": "INFO",
"qualname": "gunicorn.access",
"propagate": False,
"handlers": ["console"],
},
},
"filters": {
"stack": {
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/webapps/galaxy/buildapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,7 @@ def wrap_in_middleware(app, global_conf, application_stack, **local_conf):
# Error middleware
app = wrap_if_allowed(app, stack, ErrorMiddleware, args=(conf,))
# Transaction logging (apache access.log style)
if asbool(conf.get("use_translogger", True)):
if asbool(conf.get("use_translogger", False)):
from galaxy.web.framework.middleware.translogger import TransLogger

app = wrap_if_allowed(app, stack, TransLogger)
Expand Down

0 comments on commit d1b3734

Please sign in to comment.