[FIX] ir_attachment: write traceback to logs when upload fail
When the upload of an attachment failed, e.g. for access rights reasons, the traceback wasn't written or returned anywhere, preventing the easy debugging. opw-640242
This commit is contained in:
parent
ac92551406
commit
db3e5716b3
|
@ -1168,6 +1168,7 @@ class Binary(http.Controller):
|
||||||
}
|
}
|
||||||
except Exception:
|
except Exception:
|
||||||
args = {'error': "Something horrible happened"}
|
args = {'error': "Something horrible happened"}
|
||||||
|
_logger.exception("Fail to upload attachment %s" % ufile.filename)
|
||||||
return out % (simplejson.dumps(callback), simplejson.dumps(args))
|
return out % (simplejson.dumps(callback), simplejson.dumps(args))
|
||||||
|
|
||||||
@http.route([
|
@http.route([
|
||||||
|
|
Loading…
Reference in New Issue