remove support of oslo.messaging 9.8.0 warning message

This change removes support for supressing the
heartbeat message from olso.messaging before 9.8.0

Change-Id: I2035d5df31e43b730cd472cc438ec863bb538d62
Related-Bug: #1825584
This commit is contained in:
Sean Mooney 2020-04-30 19:09:17 +01:00
parent d6f664524d
commit ca2fe01cc1
1 changed files with 2 additions and 11 deletions

View File

@ -33,17 +33,8 @@ CONF = nova.conf.CONF
def rabbit_heartbeat_filter(log_record):
# Note the type in the log message was fixed in
# change Id11db4113c9b1c3add602192c1e915218704ef27
# but we handle both form to allow this to be backported
# without consideration of the version of oslo.messaging used.
# TODO(sean-k-mooney): remove support for typo in follow up
# to allow this to be easily backported without modification.
messages = [
"Unexpected error during heartbeart thread processing",
"Unexpected error during heartbeat thread processing"]
return not any(msg in log_record.msg for msg in messages)
message = "Unexpected error during heartbeat thread processing"
return message not in log_record.msg
def parse_args(argv, default_config_files=None, configure_db=True,