Skip to content

Commit

Permalink
Merge pull request #111 from IATI/ga-pub-logs-time
Browse files Browse the repository at this point in the history
Add timestamps to gitaggregate-publisher logs
  • Loading branch information
hayfield committed Oct 9, 2017
2 parents d2f7858 + 6aebe02 commit 79dd042
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion statsrunner/gitaggregate-publisher.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import datetime
import decimal
import json
import os
Expand Down Expand Up @@ -43,7 +44,7 @@
print "gitaggregate-publisher for commit {}".format(commit)

for publisher in os.listdir(os.path.join(GITOUT_DIR, 'commits', commit, 'aggregated-publisher')):
print "Currently looping over publisher {}".format(publisher)
print "{0} Currently looping over publisher {1}".format(str(datetime.datetime.now()), publisher)

# Set output directory for this publisher and attempt to make the directory. Pass if it already exists
git_out_dir = os.path.join(GITOUT_DIR,'gitaggregate-publisher-dated' if dated else 'gitaggregate-publisher', publisher)
Expand Down

0 comments on commit 79dd042

Please sign in to comment.