1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Re-enable debug prints from saving job events.

This commit is contained in:
Chris Church 2014-02-09 06:07:00 -05:00
parent a4ae6567dc
commit a3ee83258c

View File

@ -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()