diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-08-26 17:09:04 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-08-26 17:09:04 +0200 |
commit | 6afa00c465327a118dbcff46fa85b6df53037263 (patch) | |
tree | 9f67a586a264965c6b09f54aec015e0450d60276 /qutebrowser | |
parent | 03736ff0ddebdd94841d170ce5d31327bec21f3d (diff) | |
download | qutebrowser-6afa00c465327a118dbcff46fa85b6df53037263.tar.gz qutebrowser-6afa00c465327a118dbcff46fa85b6df53037263.zip |
More enum changes
Diffstat (limited to 'qutebrowser')
-rw-r--r-- | qutebrowser/utils/log.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index 07fb9e108..54f51c8a6 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -389,13 +389,13 @@ def qt_message_handler(msg_type: QtCore.QtMsgType, # Note we map critical to ERROR as it's actually "just" an error, and fatal # to critical. qt_to_logging = { - QtCore.QtDebugMsg: logging.DEBUG, - QtCore.QtWarningMsg: logging.WARNING, - QtCore.QtCriticalMsg: logging.ERROR, - QtCore.QtFatalMsg: logging.CRITICAL, + QtCore.QtMsgType.QtDebugMsg: logging.DEBUG, + QtCore.QtMsgType.QtWarningMsg: logging.WARNING, + QtCore.QtMsgType.QtCriticalMsg: logging.ERROR, + QtCore.QtMsgType.QtFatalMsg: logging.CRITICAL, } try: - qt_to_logging[QtCore.QtInfoMsg] = logging.INFO + qt_to_logging[QtCore.QtMsgType.QtInfoMsg] = logging.INFO except AttributeError: # Added in Qt 5.5. # While we don't support Qt < 5.5 anymore, logging still needs to work so that |