More verbose backend_status field
diff --git a/planetstack/openstack_observer/syncstep.py b/planetstack/openstack_observer/syncstep.py
index bca2d58..4852e43 100644
--- a/planetstack/openstack_observer/syncstep.py
+++ b/planetstack/openstack_observer/syncstep.py
@@ -86,10 +86,12 @@
o.backend_status = "OK"
o.save(update_fields=['enacted'])
except Exception,e:
+ logger.log_exc("sync step failed!")
+ str_e = '%r'%e
try:
- o.backend_status = self.error_map.map(str(e))
+ o.backend_status = self.error_map.map(str_e)
except:
- o.backend_status = str(e)
+ o.backend_status = str_e
if (o.pk):
o.save(update_fields=['backend_status'])