Format message, set proper level and include exception

This commit is contained in:
Felipe Reyes 2014-11-20 12:13:57 -03:00
parent 4ab20c2a33
commit cab1b88a39

View File

@ -295,7 +295,8 @@ class InstanceConsoleContext(context.OSContextGenerator):
servers.append({'private-address': rel['private-address'],
'port': rel['port']})
except Exception as ex:
log(str(ex))
log("Couldn't get caching servers: {}".format(str(ex)),
level='WARNING')
servers = []
ctxt['memcached_servers'] = servers