Skip to content

Commit

Permalink
Log the thread id as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobian committed Jun 27, 2011
1 parent 1521720 commit 7d25af4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def setup_logging(self):
log.setLevel(logging.DEBUG) log.setLevel(logging.DEBUG)
handler = logging.FileHandler('/var/log/update_feeds.log') handler = logging.FileHandler('/var/log/update_feeds.log')
handler.setLevel(logging.DEBUG) 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) handler.setFormatter(formatter)
log.addHandler(handler) log.addHandler(handler)
return log return log
Expand Down

0 comments on commit 7d25af4

Please sign in to comment.