Hide 'load glyph failed' Qt warning.

This commit is contained in:
Florian Bruhin 2014-11-16 16:25:37 +01:00
parent ecbebba9e9
commit 3622f35865

View File

@ -260,9 +260,11 @@ def qt_message_handler(msg_type, context, msg):
# bug on some pages. # bug on some pages.
# https://bugreports.qt-project.org/browse/QTBUG-30298 # https://bugreports.qt-project.org/browse/QTBUG-30298
"QNetworkReplyImplPrivate::error: Internal problem, this method must " "QNetworkReplyImplPrivate::error: Internal problem, this method must "
"only be called once." "only be called once.",
# Not much information about this, but it seems harmless # Not much information about this, but it seems harmless
'QXcbWindow: Unhandled client message: "_GTK_LOAD_ICONTHEMES"') 'QXcbWindow: Unhandled client message: "_GTK_LOAD_ICONTHEMES"',
# Sometimes indicates missing text, but most of the time harmless
'load glyph failed err=\S+ face=\S+, glyph=\S+')
if any(re.match(pattern, msg.strip()) for pattern in suppressed_msgs): if any(re.match(pattern, msg.strip()) for pattern in suppressed_msgs):
level = logging.DEBUG level = logging.DEBUG
else: else: