Permalink
Browse files

Include timestamp in log messages.

  • Loading branch information...
1 parent c8763a9 commit 63ea4848dc3ee3faefaeb932e55e1ff8f391fd21 @mhagander committed Sep 20, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 gitwrap.py
View
@@ -20,6 +20,7 @@
import sys
import os
import os.path
+import datetime
import ConfigParser
ALLOWED_COMMANDS = ('git-upload-pack', 'git-receive-pack')
@@ -31,7 +32,7 @@ def __init__(self, cfg):
def log(self, message):
f = open(self.logfile,"a")
- f.write("(%s): %s" % (self.user, message))
+ f.write("%s (%s): %s" % (datetime.datetime.now(), self.user, message))
f.write("\n")
f.close()

0 comments on commit 63ea484

Please sign in to comment.