Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9749552
D8203.id29599.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
430 B
Subscribers
None
D8203.id29599.diff
View Options
diff --git a/swh/core/api/__init__.py b/swh/core/api/__init__.py
--- a/swh/core/api/__init__.py
+++ b/swh/core/api/__init__.py
@@ -429,10 +429,9 @@
on the client side.
"""
- logging.exception(exception)
-
status_class = status_code // 100
if status_class == 5:
+ logging.exception(exception)
sentry_sdk.capture_exception(exception)
response = encoder(exception_to_dict(exception))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 24, 5:56 PM (4 d, 11 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217648
Attached To
D8203: RPC server: Do not log exceptions with 4xx HTTP status codes
Event Timeline
Log In to Comment