Skip to content

[9.0] [scout] support log level override (#228841)#239267

Closed
dmlemeshko wants to merge 1 commit intoelastic:9.0from
dmlemeshko:backport/9.0/pr-228841
Closed

[9.0] [scout] support log level override (#228841)#239267
dmlemeshko wants to merge 1 commit intoelastic:9.0from
dmlemeshko:backport/9.0/pr-228841

Conversation

@dmlemeshko
Copy link
Contributor

Backport

This will backport the following commits from main to 9.0:

Questions ?

Please refer to the Backport tool documentation

## Summary

- default log level for Playwright fixtures is `info` , afaik default
for FTR and other scripts (but for now to better understand performance
issues we pass `debug` through `node scripts/scout`, to be reverted for
GA)
- `node scripts/scout` will propagate log level from cli flag (e.g.
--debug) with `SCOUT_LOG_LEVEL` env variable to playwright exec command
- since some Team may not use `scripts/scout` command, they can set
`LOG_LEVEL` variable to override to whatever level is needed
if both `LOG_LEVEL` and `SCOUT_LOG_LEVEL` are set, the later has
priority (important for us, shouldn't block others)

### Playwright Integration:
* Replaced the use of `getLogger` with the updated `ScoutLogger` call in
Playwright worker fixtures, enabling log level configuration via
environment variables.
* Modified the Playwright test runner to propagate the log level to the
test environment using the `SCOUT_LOG_LEVEL` variable.

---------

Co-authored-by: David Olaru <dolaru@vaevixen.com>
(cherry picked from commit d76a5be)

# Conflicts:
#	src/platform/packages/shared/kbn-scout/src/playwright/global_hooks/synthtrace_ingestion.ts
@dmlemeshko dmlemeshko added the backport This PR is a backport of another PR label Oct 16, 2025
@dmlemeshko dmlemeshko enabled auto-merge (squash) October 16, 2025 07:37
@elasticmachine
Copy link
Contributor

CI was triggered for this PR, but this PR targets 9.0 which should not receive a future release. CI is not supported for these branches. Please consult the release schedule, or contact #kibana-operations if you believe this is an error.

The following branches are currently considered to be open:

  • main
  • 9.2
  • 9.1
  • 8.19
  • 7.17

1 similar comment
@elasticmachine
Copy link
Contributor

CI was triggered for this PR, but this PR targets 9.0 which should not receive a future release. CI is not supported for these branches. Please consult the release schedule, or contact #kibana-operations if you believe this is an error.

The following branches are currently considered to be open:

  • main
  • 9.2
  • 9.1
  • 8.19
  • 7.17

@dmlemeshko dmlemeshko requested a review from csr October 16, 2025 07:41
@dmlemeshko dmlemeshko closed this Oct 16, 2025
auto-merge was automatically disabled October 16, 2025 13:32

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants