chore(NA): temporarily enable more detailed error for NoSuchSessionError (#165389)

This PR just temporarily enables more detail logging for WebDriver
NoSuchSessionError happening on FTR.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
This commit is contained in:
Tiago Costa 2023-09-01 14:23:21 +01:00 committed by GitHub
parent 1158ab5c71
commit fca8c581db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -664,6 +664,12 @@ class BrowserService extends FtrService {
this.log.error(
`WebDriver session is no longer valid.\nProbably Chrome process crashed when it tried to use more memory than what was available.`
);
// TODO: Remove this after a while. We are enabling richer logs in order to try catch the real error cause.
this.log.error(
`Original Error Logging.\n Name: ${err.name};\n Message: ${err.message};\n Stack: ${
err.stack
}\n RemoteStack: ${(err as NoSuchSessionError).remoteStacktrace}`
);
}
return false;
}