From 60ca843b71979743a94b04cf2df9ac50febe6850 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 15 Oct 2019 14:20:09 -0400 Subject: [PATCH] Use logger.exception instead of logger.warning. --- awx/main/utils/ansible.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/utils/ansible.py b/awx/main/utils/ansible.py index 287d5ba94f..06f56383c1 100644 --- a/awx/main/utils/ansible.py +++ b/awx/main/utils/ansible.py @@ -116,5 +116,5 @@ def read_ansible_config(project_path, variables_of_interest): if var in parser['defaults']: values[var] = parser['defaults'][var] except Exception as e: - logger.warn('Failed to read ansible configuration(s) {}: {}'.format(fnames, e)) + logger.exception('Failed to read ansible configuration(s) {}'.format(fnames)) return values