Skip to content

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

Merged
kodiakhq[bot] merged 2 commits intomainfrom
fix/wrong_module_some_log_messages
Oct 22, 2024
Merged

fix: Ensure module field exists in all log messages#1941
kodiakhq[bot] merged 2 commits intomainfrom
fix/wrong_module_some_log_messages

Conversation

@erezrokah
Copy link
Copy Markdown
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 review from a team and dcelasun October 22, 2024 13:52
@github-actions github-actions bot added the fix label Oct 22, 2024
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
Copy Markdown
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
@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