-
Notifications
You must be signed in to change notification settings - Fork 273
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
log.getChildLogEntries() does not return child log entries #4457
Comments
This is actually the intended behaviour.
I thought the name was clear enough so I intentionally didn't change it, but we can of course do so if this causes confusion. I think we do need to fix that |
Gotcha, thanks!
Any objections or suggestions for alternatives? |
based on the feedback provided at #4457 (comment)
* test(terraform): run tests for multiple tf versions * improvement: remove terraform lock files from git tree * ci(circleci): re-enable plugins tests * chore(terraform): fix hash for terraform 0.13.3 darwin amd64 * chore: terraform-plugin: 0.13 config updates for test projects * chore: terraform-plugin: test updates for 0.13 config * chore: terraform-plugin: fix provider tests * chore: terraform-plugin: fix some action tests * chore: terraform-plugin: fix 'sets the workspace before destroying' test Co-authored-by: Steffen Neubauer <[email protected]> * chore: terraform-plugin: fix rest of the skipped tests Co-authored-by: Steffen Neubauer <[email protected]> * chore: conftest plugin: temporarily disable tests, fix in another pr * chore: conftest plugin: temporarily disable tests, fix in another pr * chore: jib plugin: temporarily disable tests, fix in another pr * chore: conftest test: fix import * chore: jib plugin: temporarily disable tests, fix in another pr * chore: terraform-plugin common tests: init before workspace commands * chore: terraform-plugin: lockfile for both test projects * chore: update unzipper * refactor: improve log message methods for testing purposes based on the feedback provided at #4457 (comment) * chore: return the separate getRootLogMessages and getLogMessages other unrelated tests were depending on the specific behavior. we can always come back to refactor further. * chore: disable terraform-plugin tests The tests have been fixed and they pass locally. These tests fail in CI because of #4467 Temporarily skipping these tests in order to unblock other PRs for the other plugins and fixing their test setups, while keeping our CI green for the test-plugins step. * chore: terraform-plugin: remove lockfile * chore: terraform-plugin tests: restore test-project-module --------- Co-authored-by: Walther <[email protected]>
The following changes were made in this PR #4381
|
Bug report for
garden
internals, not directly user-facing but could affect some log-related behaviors externally too.On the
log
class, thegetChildLogEntries()
method only returnsthis.entries
, which contains the entries of the current log instance only:garden/core/src/logger/log-entry.ts
Lines 404 to 406 in 08f0ef2
In order to actually get entries from possible child logs, you need to use
getAllLogEntries()
which fetches the entries from theroot
log.Found when working on #4381, as the provider initialization logs did not appear in
getLogMessages(garden.log)
, because the provider initialization code creates its own sub-log, and the sub-log is not correctly fetched within thegetChildLogEntries()
method called fromgetLogMessages()
The text was updated successfully, but these errors were encountered: