Skip to content
Browse files

Timestamps on logs

  • Loading branch information...
1 parent 9062dca commit d4dc7654588e50f4d5a89a1d1379341812d5cdea @JeremyGrosser JeremyGrosser committed Apr 19, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 tablesnap
View
5 tablesnap
@@ -18,7 +18,10 @@ class UploadHandler(object):
self.hostname = socket.getfqdn()
self.log = logging.getLogger('tablesnap')
- self.log.addHandler(logging.StreamHandler())
+ stderr = logging.StreamHandler()
+ stderr.setFormatter(
+ logging.Formatter('%(asctime)s %(levelname)s %(message)s'))
+ self.log.addHandler(stderr)
self.log.setLevel(logging.DEBUG)
def __call__(self, event):

0 comments on commit d4dc765

Please sign in to comment.
Something went wrong with that request. Please try again.