From 4052603238abd2109b16ebe428b3db49c307458f Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Tue, 4 May 2021 10:11:29 -0400 Subject: [PATCH] make sure log format does not error --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 58e033bcc4..c9f0154561 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -1169,7 +1169,7 @@ class BaseTask(object): logger.debug( 'Event {} websocket send {}, queue {}, avg rate {}, last rate {}'.format( - event_data['counter'], + event_data.get('counter', 0), should_emit, len(self.recent_event_timings), 30.0 / (cpu_time - first_window_time),