parent
c8f69d29a8
commit
d217fe09c6
@ -259,7 +259,7 @@ def qt_message_handler(msg_type, context, msg):
|
|||||||
# Change levels of some well-known messages to debug so they don't get
|
# Change levels of some well-known messages to debug so they don't get
|
||||||
# shown to the user.
|
# shown to the user.
|
||||||
# suppressed_msgs is a list of regexes matching the message texts to hide.
|
# suppressed_msgs is a list of regexes matching the message texts to hide.
|
||||||
suppressed_msgs = (
|
suppressed_msgs = [
|
||||||
# PNGs in Qt with broken color profile
|
# PNGs in Qt with broken color profile
|
||||||
# https://bugreports.qt.io/browse/QTBUG-39788
|
# https://bugreports.qt.io/browse/QTBUG-39788
|
||||||
"libpng warning: iCCP: Not recognizing known sRGB profile that has "
|
"libpng warning: iCCP: Not recognizing known sRGB profile that has "
|
||||||
@ -289,7 +289,14 @@ def qt_message_handler(msg_type, context, msg):
|
|||||||
'QXcbWindow: Unhandled client message: "_GTK_',
|
'QXcbWindow: Unhandled client message: "_GTK_',
|
||||||
# Happens on AppVeyor CI
|
# Happens on AppVeyor CI
|
||||||
'SetProcessDpiAwareness failed:',
|
'SetProcessDpiAwareness failed:',
|
||||||
)
|
]
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
suppressed_msgs += [
|
||||||
|
"libpng warning: iCCP: known incorrect sRGB profile",
|
||||||
|
"virtual void QSslSocketBackendPrivate::transmit() SSLRead failed "
|
||||||
|
"with: -9805",
|
||||||
|
]
|
||||||
|
|
||||||
if any(msg.strip().startswith(pattern) for pattern in suppressed_msgs):
|
if any(msg.strip().startswith(pattern) for pattern in suppressed_msgs):
|
||||||
level = logging.DEBUG
|
level = logging.DEBUG
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user