Skip to content

Commit

Permalink
Fixing output
Browse files Browse the repository at this point in the history
  • Loading branch information
ik5 committed Feb 5, 2013
1 parent d1b4db5 commit 0274f69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions convert_quotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0274f69

Please sign in to comment.