summaryrefslogtreecommitdiff
path: root/nova/servicegroup
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-08-30 00:02:54 +0000
committerGerrit Code Review <review@openstack.org>2015-08-30 00:02:54 +0000
commit4ed4546892b61e989903e5897840eed24e20997e (patch)
treeeabe0005fd30e431c110a27a7c98a0f1eb1bdca2 /nova/servicegroup
parentc23870b362a63b046c1ae628313931369b54b6e9 (diff)
parent7f039d860535bb7035b5c2b726575f27112a5254 (diff)
downloadnova-4ed4546892b61e989903e5897840eed24e20997e.tar.gz
Merge "downgrade log messages for memcache server (dis)connect events"
Diffstat (limited to 'nova/servicegroup')
-rw-r--r--nova/servicegroup/drivers/mc.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/nova/servicegroup/drivers/mc.py b/nova/servicegroup/drivers/mc.py
index 43d1b52f0e..145354d5b2 100644
--- a/nova/servicegroup/drivers/mc.py
+++ b/nova/servicegroup/drivers/mc.py
@@ -21,7 +21,7 @@ from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import timeutils
-from nova.i18n import _, _LE
+from nova.i18n import _, _LI, _LW
from nova.openstack.common import memorycache
from nova.servicegroup import api
from nova.servicegroup.drivers import base
@@ -83,10 +83,13 @@ class MemcachedDriver(base.Driver):
# TODO(termie): make this pattern be more elegant.
if getattr(service, 'model_disconnected', False):
service.model_disconnected = False
- LOG.error(_LE('Recovered model server connection!'))
+ LOG.info(
+ _LI('Recovered connection to memcache server '
+ 'for reporting service status.'))
# TODO(vish): this should probably only catch connection errors
except Exception:
if not getattr(service, 'model_disconnected', False):
service.model_disconnected = True
- LOG.exception(_LE('model server went away'))
+ LOG.warn(_LW('Lost connection to memcache server '
+ 'for reporting service status.'))