Browse files

Log the thread id as well.

  • Loading branch information...
1 parent 1521720 commit 7d25af466ee325fb87a1fcff3fd6393d5cbc9e2b @jacobian jacobian committed Jun 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 django_website/aggregator/management/commands/update_feeds.py
View
2 django_website/aggregator/management/commands/update_feeds.py
@@ -70,7 +70,7 @@ def setup_logging(self):
log.setLevel(logging.DEBUG)
handler = logging.FileHandler('/var/log/update_feeds.log')
handler.setLevel(logging.DEBUG)
- formatter = logging.Formatter('%(asctime)s [%(levelname)s]: %(message)s')
+ formatter = logging.Formatter('%(asctime)s [%(levelname)s] (%(thread)d) %(message)s')
handler.setFormatter(formatter)
log.addHandler(handler)
return log

0 comments on commit 7d25af4

Please sign in to comment.