fix: downgrade selenium log level on timeout (#15328)

This commit is contained in:
Daniel Vaz Gaspar 2021-06-28 20:02:05 +01:00 committed by GitHub
parent 0b7e524f02
commit f52b6715cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -123,10 +123,10 @@ class WebDriverProxy:
logger.info("Taking a PNG screenshot or url %s", url)
img = element.screenshot_as_png
except TimeoutException:
logger.error("Selenium timed out requesting url %s", url, exc_info=True)
logger.warning("Selenium timed out requesting url %s", url, exc_info=True)
except StaleElementReferenceException:
logger.error(
"Selenium timed out while waiting for chart(s) to load %s",
"Selenium got a stale element while requesting url %s",
url,
exc_info=True,
)