Skip to content

Commit

Permalink
Merge pull request #102 from CruzR/loggerfix
Browse files Browse the repository at this point in the history
Fix formatter of auto-installed logging handler.
  • Loading branch information
wpercy authored Oct 16, 2017
2 parents 9885d9f + 84ddc24 commit c4ae08b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vobject/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def to_basestring(s):
logger = logging.getLogger(__name__)
if not logging.getLogger().handlers:
handler = logging.StreamHandler()
formatter = logging.Formatter('{name} {levelname} {message}')
formatter = logging.Formatter('%(name)s %(levelname)s %(message)s')
handler.setFormatter(formatter)
logger.addHandler(handler)
logger.setLevel(logging.ERROR) # Log errors
Expand Down

0 comments on commit c4ae08b

Please sign in to comment.