-
Notifications
You must be signed in to change notification settings - Fork 5k
refactor: replace lopg.ObserverLogs with logptest #45734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ObserverLogs is relying on a testing package in a non-test package move to logptest
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform) |
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
|
Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services) |
|
There are some places in beats codebase that use a very clumsy way of setting observer. Now that we have This is one such instance https://github.com/khushijain21/beats/blob/localLogger13/libbeat/autodiscover/autodiscover_test.go#L759-L761 Thanks for doing this! |
|
@elastic/sec-linux-platform friendly ping for review |
1 similar comment
|
@elastic/sec-linux-platform friendly ping for review |
|
@elastic/sec-linux-platform friendly ping for review |
|
@nfritts could you please take a look here? |
|
@Mergifyio backport 8.19 9.1 9.2 |
✅ Backports have been created
|
* refactor: replace lopg.ObserverLogs with logptest ObserverLogs is relying on a testing package in a non-test package move to logptest * lint: regenerate notice file * test: update to NewTestingLoggerWithObserver * lint: regenerate notice * lint: remove unused imports * lint: remove unused imports * Update console_test.go * lint: fix linter issues (cherry picked from commit b5789af) # Conflicts: # filebeat/input/journald/pkg/journalctl/reader_test.go
* refactor: replace lopg.ObserverLogs with logptest ObserverLogs is relying on a testing package in a non-test package move to logptest * lint: regenerate notice file * test: update to NewTestingLoggerWithObserver * lint: regenerate notice * lint: remove unused imports * lint: remove unused imports * Update console_test.go * lint: fix linter issues (cherry picked from commit b5789af) # Conflicts: # filebeat/input/filestream/config_test.go # filebeat/input/journald/pkg/journalctl/reader_test.go # libbeat/autodiscover/autodiscover_test.go
* refactor: replace lopg.ObserverLogs with logptest ObserverLogs is relying on a testing package in a non-test package move to logptest * lint: regenerate notice file * test: update to NewTestingLoggerWithObserver * lint: regenerate notice * lint: remove unused imports * lint: remove unused imports * Update console_test.go * lint: fix linter issues (cherry picked from commit b5789af)
* refactor: replace lopg.ObserverLogs with logptest ObserverLogs is relying on a testing package in a non-test package move to logptest * lint: regenerate notice file * test: update to NewTestingLoggerWithObserver * lint: regenerate notice * lint: remove unused imports * lint: remove unused imports * Update console_test.go * lint: fix linter issues (cherry picked from commit b5789af) Co-authored-by: kruskall <[email protected]>
Proposed commit message
ObserverLogs is relying on a testing package in a non-test package
move to logptest
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Disruptive User Impact
Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs