We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1a8957 commit 6edcaddCopy full SHA for 6edcadd
src/dicomweb_client/log.py
@@ -3,7 +3,7 @@
3
import logging
4
5
6
-def _filter_header_parsing_error(record: logging.LogRecord) -> int:
+def _filter_header_parsing_error(record: logging.LogRecord) -> bool:
7
"""Filters warnings of ``urllib3.exceptions.HeaderParsingError``.
8
9
Parameters
@@ -13,13 +13,13 @@ def _filter_header_parsing_error(record: logging.LogRecord) -> int:
13
14
Returns
15
-------
16
- int
17
- zero if the record should be filtered, non-zero otherwise
+ bool
+ False if the record should be filtered, True otherwise
18
19
"""
20
if 'Failed to parse headers' in record.getMessage():
21
- return 0
22
- return 1
+ return False
+ return True
23
24
25
def _map_logging_verbosity(verbosity: int) -> int:
0 commit comments