mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: add stack trace to all calls of logger.error (#14382)
This commit is contained in:
committed by
GitHub
parent
13cfc421d5
commit
11260b3117
@@ -119,9 +119,9 @@ 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)
|
||||
logger.error("Selenium timed out requesting url %s", url, exc_info=True)
|
||||
except WebDriverException as ex:
|
||||
logger.error(ex)
|
||||
logger.error(ex, exc_info=True)
|
||||
# Some webdrivers do not support screenshots for elements.
|
||||
# In such cases, take a screenshot of the entire page.
|
||||
img = driver.screenshot() # pylint: disable=no-member
|
||||
|
||||
Reference in New Issue
Block a user