Skip to content

Commit

Permalink
Merge pull request #22 from liberation/add-target-url-log-21
Browse files Browse the repository at this point in the history
#21 - add target url in error log
  • Loading branch information
grangier committed Feb 2, 2017
2 parents f573005 + 0deb29d commit 257d585
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion carrier_pigeon/senders.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ def deliver(self, file_list, target_url, row=None):
feedback = u"[%s] '%s': push SUCCESS" % (now, f)
logger.info(feedback)
else:
feedback = u"[%s] '%s': push ERROR: %s" % (now, f, ex)
feedback = u"[%s] '%s': push ERROR: %s TARGET: %s" % (
now, f, ex, target_url
)
logger.error(feedback)
ok = False

Expand Down

0 comments on commit 257d585

Please sign in to comment.