-
Notifications
You must be signed in to change notification settings - Fork 10k
Fix JSON format ignored in some logging subsystems #37435
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
base: main
Are you sure you want to change the base?
Conversation
Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement Learn more about why HashiCorp requires a CLA and what the CLA includes Have you signed the CLA already but the status is still pending? Recheck it. |
Thanks for this submission, I will raise it in triage. |
@crw any chance we can expedite this? can I help somehow? |
Hi @uristernik, this PR is unlikely (but not impossible) to be reviewed due to making an already complicated situation more complicated. For reference here is an old RFC for provider logging: hashicorp/terraform-plugin-sdk#695, and here is a relevant comment on the PR that implemented
This seems to be the intended implementation. Combining the log format with the log level did not help matters. That said, I am going to try to get a final answer as to whether this PR would be considered or not, as it may not make things worse, just different. |
@crw Thanks for taking the time to review this and for considering the request. To elaborate on our use case: we’ve built a CLI tool similar to the one the PR author mentioned. This tool parses logs and extracts insights, and provider logs are particularly valuable for us since we manage fairly large workspaces. At this scale, we often run into API throttling issues, and with this tool we can profile requests and optimize them more effectively. Currently, we’re working with log files of around ~800Mi. By leveraging provider logs, we can cut that size down significantly, which makes storage more efficient and profiling much faster. From my perspective, this PR doesn’t alter existing behavior - it simply extends the expected behavior to all logging subsystems, which I believe was the original intent. This comment seems to support that interpretation: #35298 (comment)
Thanks again, LMK what do you think 🙏 |
gentle ping @crw 🙏 |
Hi @uristernik, apologies, I do not have an update. I raised this comment to the team, there was a bit of a confluence of interest due to the coincidental revival of this thread: https://discuss.hashicorp.com/t/tf-log-provider-name-does-not-work/39963. However, given the relative close timing to HashiConf deadlines, I would be surprised if this gets picked up for review in the near future. I think it is worth keeping open as this logging conundrum may be revisited later, but I leave it in your hands if you want to keep this open. Thanks! |
Fixes #37433
Target Release
1.14.x
Rollback Plan
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
CHANGELOG entry
This actually fixes what is described in the docs https://developer.hashicorp.com/terraform/internals/debugging