Skip to content

Commit a215975

Browse files
committed
chg: Reduce logging for failed captures
1 parent 9fc39b1 commit a215975

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

har2tree/har2tree.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@ def __init__(self, harfile: Path, capture_uuid: str):
118118
last_redirect = unquote_plus(_lr.read())
119119
self.final_redirect: str = last_redirect
120120
if not self._search_final_redirect():
121-
self.logger.info(f'Final redirect URL from address bar not in tree: {last_redirect}')
121+
if last_redirect.startswith('chrome') or last_redirect.startswith('about'):
122+
# the capture failed.
123+
pass
124+
else:
125+
self.logger.info(f'Final redirect URL from address bar not in tree: {last_redirect}')
122126
else:
123127
self.logger.debug('No last_redirect file available.')
124128
self.final_redirect = ''

0 commit comments

Comments
 (0)