From f4d1e33f108e9e1e1429aaae094ae98c1138a55c Mon Sep 17 00:00:00 2001 From: Idan Narotzki Date: Thu, 25 Jan 2018 14:47:43 +0000 Subject: [PATCH] Add Error log to upload_blob func. In order to have more info when upload_blob fails, we add this log. Learning from https://bugs.launchpad.net/glare/+bug/1742729 case, where this kind of info was missing. Change-Id: If91e014692cbe6ad39c473eecef520b08881d53b --- glare/engine.py | 1 + 1 file changed, 1 insertion(+) diff --git a/glare/engine.py b/glare/engine.py index bf0847a..4b2620c 100644 --- a/glare/engine.py +++ b/glare/engine.py @@ -600,6 +600,7 @@ class Engine(object): except Exception: # if upload failed remove blob from db and storage with excutils.save_and_reraise_exception(logger=LOG): + LOG.error("Exception occured: %s", Exception) self._save_blob_info( context, af, field_name, blob_key, None)