From 6afa00c465327a118dbcff46fa85b6df53037263 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 26 Aug 2021 17:09:04 +0200 Subject: More enum changes --- qutebrowser/utils/log.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'qutebrowser') 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 -- cgit v1.2.3-54-g00ecf