From dd9129d42cf280458301d5101a131c4c5c12abdf Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Wed, 6 May 2015 14:39:20 -0500 Subject: [PATCH] changes log level to debug for help calls Calling help typically causes the program being called to exit non-zero. This causes the command to be logged as an error even though it should not be. By setting 'log_fail_as_error=False' we log to debug. This helps clean up logs. Change-Id: I13f9488b9bc524bb85047e9b2dcf4e8a76bd6c11 Closes-Bug: 1452425 --- neutron/agent/linux/ip_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/agent/linux/ip_lib.py b/neutron/agent/linux/ip_lib.py index 943fd543c..9cbd5e7a2 100644 --- a/neutron/agent/linux/ip_lib.py +++ b/neutron/agent/linux/ip_lib.py @@ -673,7 +673,7 @@ def ensure_device_is_ready(device_name, namespace=None): def iproute_arg_supported(command, arg): command += ['help'] stdout, stderr = utils.execute(command, check_exit_code=False, - return_stderr=True) + return_stderr=True, log_fail_as_error=False) return any(arg in line for line in stderr.split('\n')) -- 2.45.2