Skip to content
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

fix: Ensure module field exists in all log messages #1941

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

erezrokah
Copy link
Member

Summary

Fixes https://github.com/cloudquery/cloudquery-issues/issues/2627

The wrong value in the module field is because of the bug fixed in cloudquery/plugin-pb-go#421


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@erezrokah erezrokah requested a review from a team as a code owner October 22, 2024 13:52
@github-actions github-actions bot added the fix label Oct 22, 2024
@@ -134,6 +134,8 @@ func (s *PluginServe) newCmdPluginServe() *cobra.Command {
logger = log.Output(zerolog.ConsoleWriter{Out: os.Stdout}).Level(zerologLevel)
}

logger = logger.With().Str("module", s.plugin.Name()+"-"+string(s.plugin.Kind())).Logger()
Copy link
Member Author

@erezrokah erezrokah Oct 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not shown in the diff but we do s.plugin.SetLogger(logger) a bit below

@erezrokah erezrokah requested review from marianogappa and removed request for dcelasun October 22, 2024 14:03
@kodiakhq kodiakhq bot merged commit b1ca41c into main Oct 22, 2024
7 checks passed
@kodiakhq kodiakhq bot deleted the fix/wrong_module_some_log_messages branch October 22, 2024 14:23
kodiakhq bot pushed a commit that referenced this pull request Oct 22, 2024
🤖 I have created a release *beep* *boop*
---


## [4.67.1](v4.67.0...v4.67.1) (2024-10-22)


### Bug Fixes

* **deps:** Update module github.com/aws/aws-sdk-go-v2/config to v1.28.0 ([#1940](#1940)) ([35cf587](35cf587))
* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.24.1 ([#1943](#1943)) ([14f44ad](14f44ad))
* Ensure module field exists in all log messages ([#1941](#1941)) ([b1ca41c](b1ca41c))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants