diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index b86db88a5..71094f634 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -132,10 +132,11 @@ 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 19"] - if msg.strip() in suppressed_msgs: + "OpenType support missing for script [0-9]*"] + if any(re.match(pattern, msg.strip()) for pattern in suppressed_msgs): level = logging.DEBUG else: level = qt_to_logging[msg_type]