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
|
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:
|
- Random error messages while browsing on imgur/reddit:
|
||||||
|
|
||||||
WARNING: content-type missing in HTTP POST, defaulting to
|
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
|
# 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 = ("libpng warning: iCCP: Not recognizing known sRGB "
|
suppressed_msgs = (
|
||||||
"profile that has been edited",
|
# PNGs in Qt with broken color profile
|
||||||
"OpenType support missing for script [0-9]*")
|
# 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):
|
if any(re.match(pattern, msg.strip()) for pattern in suppressed_msgs):
|
||||||
level = logging.DEBUG
|
level = logging.DEBUG
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user