mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-07-23 15:00:36 -04:00
Merge branch 'behavior_logging' into qa
This commit is contained in:
commit
696961d995
1 changed files with 3 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
"""
|
"""
|
||||||
brozzler/browser.py - manages the browsers for brozzler
|
brozzler/browser.py - manages the browsers for brozzler
|
||||||
|
|
||||||
Copyright (C) 2014-2024 Internet Archive
|
Copyright (C) 2014-2025 Internet Archive
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
@ -796,9 +796,7 @@ class Browser:
|
||||||
elapsed = time.time() - start
|
elapsed = time.time() - start
|
||||||
if elapsed > timeout:
|
if elapsed > timeout:
|
||||||
logging.info(
|
logging.info(
|
||||||
"behavior reached hard timeout after %.1fs and %s valid checks, "
|
"behavior reached hard timeout after %.1fs and %s valid checks, and %s invalid checks, for url %s",
|
||||||
"and %s invalid checks, "
|
|
||||||
"for url %s",
|
|
||||||
elapsed,
|
elapsed,
|
||||||
valid_behavior_checks,
|
valid_behavior_checks,
|
||||||
invalid_behavior_checks,
|
invalid_behavior_checks,
|
||||||
|
@ -852,8 +850,7 @@ class Browser:
|
||||||
# {'id': 9, 'result': {'result': {'type': 'boolean', 'value': True}}}
|
# {'id': 9, 'result': {'result': {'type': 'boolean', 'value': True}}}
|
||||||
elapsed = time.time() - start
|
elapsed = time.time() - start
|
||||||
self.logger.info(
|
self.logger.info(
|
||||||
"behavior decided it has finished after %.1fs and %s valid checks, "
|
"behavior decided it has finished after %.1fs and %s valid checks, and %s invalid checks, for url %s",
|
||||||
"and %s invalid checks, for url %s",
|
|
||||||
elapsed,
|
elapsed,
|
||||||
valid_behavior_checks,
|
valid_behavior_checks,
|
||||||
invalid_behavior_checks,
|
invalid_behavior_checks,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue