From a3ee83258ca2c07cbcbc3b475f9e2a6b9112c7e7 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Sun, 9 Feb 2014 06:07:00 -0500 Subject: [PATCH] Re-enable debug prints from saving job events. --- awx/main/tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 08df875763..c42178c23d 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -547,7 +547,7 @@ class SaveJobEvents(Task): data['created'] = data['created'].replace(tzinfo=FixedOffset(0)) except (KeyError, ValueError): data.pop('created', None) - if 0 and settings.DEBUG: + if settings.DEBUG: print data for key in data.keys(): if key not in ('job_id', 'event', 'event_data', 'created'): @@ -568,7 +568,7 @@ class SaveJobEvents(Task): transaction.commit() else: duplicate = True - if 0 and settings.DEBUG: + if settings.DEBUG: print 'skipping duplicate job event %r' % data break except DatabaseError as e: @@ -580,7 +580,7 @@ class SaveJobEvents(Task): events_received[event] = 1 else: events_received[event] += 1 - if 0 and settings.DEBUG: + if settings.DEBUG: print 'saved job event in %0.3fs' % (time.time() - begints) message.ack()