Permalink
Browse files

Fixing output

  • Loading branch information...
1 parent d1b4db5 commit 0274f6971ea22fd2ee43d81cd052d53337ae2e25 @ik5 committed Feb 5, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 convert_quotes.py
View
@@ -23,17 +23,16 @@ def init_logger() :
handler = logging.FileHandler('log/convert.log')
formatter = logging.Formatter(('[%(asctime)s - %(levelname)s] '
'%(message)s'))
- handler.setLevel(logging.DEBUG)
handler.setFormatter(formatter)
logger.addHandler(handler)
# place output to screen
ch = logging.StreamHandler()
- ch.setLevel(logging.DEBUG)
ch_format = logging.Formatter('%(levelname)s %(message)s')
ch.setFormatter(ch_format)
logger.addHandler(ch)
+ logger.setLevel(logging.DEBUG)
return logger

0 comments on commit 0274f69

Please sign in to comment.