Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Reset logger context when streaming logs from plugins (#421)
#### Summary Fixes cloudquery/cloudquery-issues#2624 (internal issue) We were using the logger created here https://github.com/cloudquery/cloudquery/blob/69143a73499660db2ab714781a5d207884fb9303/cli/cmd/logging.go#L51 to output logs messages from plugins. Plugins already set their log context in https://github.com/cloudquery/plugin-sdk/blob/8b9e067af19604d90d2e77d6e1aff1d93adad752/plugin/plugin.go#L213 and https://github.com/cloudquery/plugin-sdk/blob/8b9e067af19604d90d2e77d6e1aff1d93adad752/plugin/plugin.go#L241, so when we stream them to the `cloudquery.log` file we should use a new logger with an empty context. ---
- Loading branch information