From e95938715afef6ee41a12723dcf54d2beee76d93 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Tue, 14 Apr 2020 14:18:30 -0400 Subject: [PATCH] make rsyslog service restarts a bit less noisy --- awx/main/utils/reload.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/awx/main/utils/reload.py b/awx/main/utils/reload.py index 9c71697516..37c7c48cfe 100644 --- a/awx/main/utils/reload.py +++ b/awx/main/utils/reload.py @@ -29,11 +29,12 @@ def supervisor_service_command(command, service='*', communicate=True): restart_stdout, restart_err = supervisor_process.communicate() restart_code = supervisor_process.returncode if restart_code or restart_err: - logger.error('supervisorctl {} errored with exit code `{}`, stdout:\n{}stderr:\n{}'.format( - command, restart_code, restart_stdout.strip(), restart_err.strip())) + logger.error('supervisorctl {} {} errored with exit code `{}`, stdout:\n{}stderr:\n{}'.format( + command, service, restart_code, restart_stdout.strip(), restart_err.strip())) else: - logger.info('supervisorctl {} finished, stdout:\n{}'.format( - command, restart_stdout.strip())) + logger.debug( + 'supervisorctl {} {} succeeded'.format(command, service) + ) else: logger.info('Submitted supervisorctl {} command, not waiting for result'.format(command))