diff options
author | Zuul <zuul@review.opendev.org> | 2021-07-15 08:47:22 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2021-07-15 08:47:22 +0000 |
commit | f4124ff5b06c855e985288737719965b3512e032 (patch) | |
tree | c437f9618e3b67439a8240043e0ce49b59cd876f | |
parent | eeffffcd4793232f4488e33460446488e859045d (diff) | |
parent | 6786cbe2c4354eb0a94d6871ff278d3ad349a220 (diff) | |
download | ironic-python-agent-bugfix/8.0-eol.tar.gz |
Merge "Reduce logging verbosity when collecting logs" into bugfix/8.0bugfix/8.0-eol
-rw-r--r-- | ironic_python_agent/utils.py | 3 |
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 = [] |