fixes nio logger configuration for nio >= 0.21
This commit is contained in:
parent
45d98fe0b5
commit
8d430953f2
|
@ -41,8 +41,11 @@ from .user_files import (
|
||||||
|
|
||||||
# Logging configuration
|
# Logging configuration
|
||||||
log.getLogger().setLevel(log.INFO)
|
log.getLogger().setLevel(log.INFO)
|
||||||
|
if hasattr(nio, 'log'):
|
||||||
nio.logger_group.level = nio.log.logbook.WARNING
|
nio.logger_group.level = nio.log.logbook.WARNING
|
||||||
nio.log.logbook.StreamHandler(sys.stderr).push_application()
|
nio.log.logbook.StreamHandler(sys.stderr).push_application()
|
||||||
|
else:
|
||||||
|
log.getLogger('nio').setLevel(log.WARNING)
|
||||||
|
|
||||||
|
|
||||||
class Backend:
|
class Backend:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user