summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2021-06-14 09:22:53 +0000
committerGerrit Code Review <review@openstack.org>2021-06-14 09:22:53 +0000
commit8afc176c2867d014993af651e19441e6dad01fcb (patch)
tree7f4d03ea7dd5ecc89133a2051ed1e337e1e43716
parent12dbe3ddb74e9748c2645450828e58b12e204dd6 (diff)
parent2fcf35e56d578d98d77ffc97b6441f83548d7704 (diff)
downloadironic-python-agent-8afc176c2867d014993af651e19441e6dad01fcb.tar.gz
Merge "Reduce logging verbosity when collecting logs"
-rw-r--r--ironic_python_agent/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ironic_python_agent/utils.py b/ironic_python_agent/utils.py
index 03de236c..b5d0533a 100644
--- a/ironic_python_agent/utils.py
+++ b/ironic_python_agent/utils.py
@@ -478,7 +478,6 @@ def get_command_output(command):
except (processutils.ProcessExecutionError, OSError) as e:
error_msg = ('Failed to get the output of the command "%(command)s". '
'Error: %(error)s' % {'command': command, 'error': e})
- LOG.error(error_msg)
raise errors.CommandExecutionError(error_msg)
return io.BytesIO(out)
@@ -547,7 +546,7 @@ def collect_system_logs(journald_max_lines=None):
try:
io_dict[file_name] = get_command_output(command)
except errors.CommandExecutionError:
- pass
+ LOG.debug('Collecting logs from command %s has failed', command)
io_dict = {}
file_list = []