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
*.egg-info
*.pyc
venv
*.qmlc
*.jsc

View File

@ -41,8 +41,11 @@ from .user_files import (
# Logging configuration
log.getLogger().setLevel(log.INFO)
nio.logger_group.level = nio.log.logbook.WARNING
nio.log.logbook.StreamHandler(sys.stderr).push_application()
if hasattr(nio, 'log'):
nio.logger_group.level = nio.log.logbook.WARNING
nio.log.logbook.StreamHandler(sys.stderr).push_application()
else:
log.getLogger('nio').setLevel(log.WARNING)
class Backend: