Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
96387bd2
Unverified
Commit
96387bd2
authored
7 years ago
by
Richard van der Hoff
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #2705 from matrix-org/rav/improve_tracebacks
Improve tracebacks on exceptions
parents
79eba878
6be01f59
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/http/server.py
+9
-3
9 additions, 3 deletions
synapse/http/server.py
with
9 additions
and
3 deletions
synapse/http/server.py
+
9
−
3
View file @
96387bd2
...
...
@@ -28,6 +28,7 @@ from canonicaljson import (
)
from
twisted.internet
import
defer
from
twisted.python
import
failure
from
twisted.web
import
server
,
resource
from
twisted.web.server
import
NOT_DONE_YET
from
twisted.web.util
import
redirectTo
...
...
@@ -131,12 +132,17 @@ def wrap_request_handler(request_handler, include_metrics=False):
version_string
=
self
.
version_string
,
)
except
Exception
:
logger
.
exception
(
"
Failed handle request %s.%s on %r: %r
"
,
# failure.Failure() fishes the original Failure out
# of our stack, and thus gives us a sensible stack
# trace.
f
=
failure
.
Failure
()
logger
.
error
(
"
Failed handle request %s.%s on %r: %r: %s
"
,
request_handler
.
__module__
,
request_handler
.
__name__
,
self
,
request
request
,
f
.
getTraceback
().
rstrip
(),
)
respond_with_json
(
request
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment