Skip to content

Commit

Permalink
chore(NA): temporarily enable more detailed error for NoSuchSessionEr…
Browse files Browse the repository at this point in the history
…ror (#165389)

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

Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Dzmitry Lemechko <[email protected]>
  • Loading branch information
3 people authored Sep 1, 2023
1 parent 1158ab5 commit fca8c58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/functional/services/common/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fca8c58

Please sign in to comment.