Escape regex correctly.
This commit is contained in:
parent
cf1728de43
commit
b0c8ca9e1a
@ -264,7 +264,7 @@ def qt_message_handler(msg_type, context, msg):
|
|||||||
# 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
|
# Sometimes indicates missing text, but most of the time harmless
|
||||||
'load glyph failed err=\S+ face=\S+, glyph=\S+')
|
r'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:
|
||||||
|
Loading…
Reference in New Issue
Block a user