Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Sep 17, 2016

In Python3 with PyYAML, logging.config.dictConfig sample not working, got errors as follows:

Traceback (most recent call last):
  File "test.py", line 7, in <module>
    logging.config.dictConfig(conf['logging'])
  File "/Users/takashibagura/.pyenv/versions/3.5.0/lib/python3.5/logging/config.py", line 795, in dictConfig
    dictConfigClass(config).configure()
  File "/Users/takashibagura/.pyenv/versions/3.5.0/lib/python3.5/logging/config.py", line 556, in configure
    for name in sorted(handlers):
TypeError: unorderable types: str() < NoneType()

I was changed the key of handlers is not to None.

@coveralls
Copy link

coveralls commented Sep 17, 2016

Coverage Status

Coverage remained the same at 89.08% when pulling 0b2bad6 on takashibagura:master into c590560 on fluent:master.

@repeatedly repeatedly merged commit 48f6ac0 into fluent:master Sep 20, 2016
@repeatedly
Copy link
Member

Thanks for the patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants