Improves metadata exception logging

This commit is contained in:
Alessandro Pilotti
2013-11-16 15:31:02 +02:00
parent 7f142c3555
commit f21d5b86dc

View File

@@ -47,6 +47,6 @@ class MetadataServiceFactory(object):
if service.load(): if service.load():
return service return service
except Exception, ex: except Exception, ex:
LOG.error('Failed to load metadata service \'%(class_path)s\' ' LOG.error('Failed to load metadata service \'%(class_path)s\'')
'with error: %(ex)s' % locals()) LOG.exception(ex)
raise Exception("No available service found") raise Exception("No available service found")