Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Log the thread id as well.

  • Loading branch information...
commit 7d25af466ee325fb87a1fcff3fd6393d5cbc9e2b 1 parent 1521720
@jacobian jacobian authored
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.
Something went wrong with that request. Please try again.