Merge remote-tracking branch 'alex/fix-nio'

This commit is contained in:
Maze 2023-08-21 21:16:29 +02:00
commit b61d1e7a3e
2 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@ __pycache__
.mypy_cache .mypy_cache
*.egg-info *.egg-info
*.pyc *.pyc
venv
*.qmlc *.qmlc
*.jsc *.jsc

View File

@ -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: