Format message, set proper level and include exception
This commit is contained in:
parent
4ab20c2a33
commit
cab1b88a39
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user