Avoid logging warnings when group deleted or member gone
If we got kicked out of a group, or the group got removed we don't need to log a warning when stopping and an error related to the above occurs. Change-Id: Iccadd6483b7e75d1b1ce3c4e6904a22380af7f1c
This commit is contained in:
parent
3a470225f9
commit
5c17f42318
|
@ -337,6 +337,9 @@ class RedisDriver(coordination.CoordinationDriver):
|
||||||
group_id = self._joined_groups.pop()
|
group_id = self._joined_groups.pop()
|
||||||
try:
|
try:
|
||||||
self.leave_group(group_id).get()
|
self.leave_group(group_id).get()
|
||||||
|
except (coordination.MemberNotJoined,
|
||||||
|
coordination.GroupNotCreated):
|
||||||
|
pass
|
||||||
except coordination.ToozError:
|
except coordination.ToozError:
|
||||||
LOG.warning("Unable to leave group '%s'", group_id,
|
LOG.warning("Unable to leave group '%s'", group_id,
|
||||||
exc_info=True)
|
exc_info=True)
|
||||||
|
|
Loading…
Reference in New Issue