Page MenuHomeSoftware Heritage

D162.id.diff
No OneTemporary

D162.id.diff

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

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

Event Timeline