John Vandenberg has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/137007

Change subject: Log the date the command was run
......................................................................

Log the date the command was run

The date can be helpful if 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(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/07/137007/1

diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 2c2e2b5..d55b1c1 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' % str(datetime.datetime.now()))
+
     # new framework release/revision? (handleArgs needs to be called first)
     try:
         log(u'VERSION: %s' % unicode((version.getversion().strip(),

-- 
To view, visit https://gerrit.wikimedia.org/r/137007
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I02e97f59f07e1321c69181e2dc10a6c919603f9b
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jay...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to