Hide QNetworkReplyImplPrivate warning message
This commit is contained in:
parent
54be9705bd
commit
069371501a
5
doc/BUGS
5
doc/BUGS
@ -58,11 +58,6 @@ Crashes
|
||||
Qt warnings
|
||||
-----------
|
||||
|
||||
- When following a hint:
|
||||
QNetworkReplyImplPrivate::error: Internal problem, this method must only be called once.
|
||||
Also when loading
|
||||
https://web.archive.org/web/20140625053129/http://www.20min.ch/
|
||||
|
||||
- Random error messages while browsing on imgur/reddit:
|
||||
|
||||
WARNING: content-type missing in HTTP POST, defaulting to
|
||||
|
@ -234,9 +234,18 @@ def qt_message_handler(msg_type, context, msg):
|
||||
# Change levels of some well-known messages to debug so they don't get
|
||||
# shown to the user.
|
||||
# suppressed_msgs is a list of regexes matching the message texts to hide.
|
||||
suppressed_msgs = ("libpng warning: iCCP: Not recognizing known sRGB "
|
||||
"profile that has been edited",
|
||||
"OpenType support missing for script [0-9]*")
|
||||
suppressed_msgs = (
|
||||
# PNGs in Qt with broken color profile
|
||||
# https://bugreports.qt-project.org/browse/QTBUG-39788
|
||||
"libpng warning: iCCP: Not recognizing known sRGB profile that has "
|
||||
"been edited",
|
||||
# Hopefully harmless warning
|
||||
"OpenType support missing for script [0-9]*",
|
||||
# Error if a QNetworkReply gets two different errors set. Harmless Qt
|
||||
# bug on some pages.
|
||||
# https://bugreports.qt-project.org/browse/QTBUG-30298
|
||||
"QNetworkReplyImplPrivate::error: Internal problem, this method must "
|
||||
"only be called once.")
|
||||
if any(re.match(pattern, msg.strip()) for pattern in suppressed_msgs):
|
||||
level = logging.DEBUG
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user