From ed1894e7468901e345df4aa5b5790ec20a458406 Mon Sep 17 00:00:00 2001 From: hayfield Date: Wed, 4 Oct 2017 09:07:24 +0100 Subject: [PATCH] Add timestamps to gitaggregate-publisher logs This is useful in seeing how long things take to run. --- statsrunner/gitaggregate-publisher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/statsrunner/gitaggregate-publisher.py b/statsrunner/gitaggregate-publisher.py index 73d8b6f98d2..5de00dc750a 100644 --- a/statsrunner/gitaggregate-publisher.py +++ b/statsrunner/gitaggregate-publisher.py @@ -1,3 +1,4 @@ +import datetime import decimal import json import os @@ -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)