Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7163526
D162.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
528 B
Subscribers
None
D162.id.diff
View Options
diff --git a/swh/core/api.py b/swh/core/api.py
--- a/swh/core/api.py
+++ b/swh/core/api.py
@@ -4,6 +4,7 @@
# See top-level LICENSE file for more information
import json
+import logging
import pickle
import requests
@@ -97,6 +98,7 @@
def error_handler(exception, encoder):
# XXX: this breaks language-independence and should be
# replaced by proper serialization of errors
+ logging.exception(exception)
response = encoder(pickle.dumps(exception))
response.status_code = 400
return response
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 30, 9:53 AM (19 h, 23 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3222647
Attached To
D162: swh.core.api: add error logging for internal exceptions
Event Timeline
Log In to Comment