File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 18
18
from six import PY2
19
19
from six .moves .urllib .parse import urlparse
20
20
21
+ # noinspection PyProtectedMember
21
22
from reportportal_client ._local import current
22
23
from reportportal_client .helpers import timestamp
23
24
@@ -137,8 +138,9 @@ def filter(self, record):
137
138
# Filter the reportportal_client requests instance
138
139
# urllib3 usage
139
140
hostname = urlparse (self .endpoint ).hostname
140
- if hostname in self .format (record ):
141
- return False
141
+ if hostname :
142
+ if hostname .decode () in self .format (record ):
143
+ return False
142
144
return True
143
145
144
146
def _get_rp_log_level (self , levelno ):
@@ -159,6 +161,7 @@ def emit(self, record):
159
161
"""
160
162
msg = ''
161
163
164
+ # noinspection PyBroadException
162
165
try :
163
166
msg = self .format (record )
164
167
except (KeyboardInterrupt , SystemExit ):
You can’t perform that action at this time.
0 commit comments