jenkins-bot has submitted this change and it was merged.
Change subject: Log the script start date and time UTC
......................................................................
Log the script start date and time UTC
The date can be helpful when looking at an old log file,
and is a cheap way of recording what the pywiki repo version
was at the time the command was run.
Change-Id: I02e97f59f07e1321c69181e2dc10a6c919603f9b
---
M pywikibot/bot.py
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
Mpaa: Looks good to me, but someone else must approve
Multichill: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index b40cfa8..a41183a 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -23,6 +23,7 @@
import sys
import re
import json
+import datetime
_logger = "bot"
@@ -256,6 +257,9 @@
# script call
log(u'COMMAND: %s' % unicode(sys.argv))
+ # script call time stamp
+ log(u'DATE: %s UTC' % str(datetime.datetime.utcnow()))
+
# new framework release/revision? (handleArgs needs to be called first)
try:
log(u'VERSION: %s' %
--
To view, visit
https://gerrit.wikimedia.org/r/137007
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I02e97f59f07e1321c69181e2dc10a6c919603f9b
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: Multichill <maarten(a)mdammers.nl>
Gerrit-Reviewer: jenkins-bot <>