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

Refactored logging in the workceptor package and the receptor-cli pac… #738

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

AaronH88
Copy link
Contributor

@AaronH88 AaronH88 commented Feb 16, 2023

…kage.

Building on PR #723 , this PR follows the same logging methodology and extends it to the workceptor package. Also removed unneeded logging functions from logger.go.

Based off of Shanes PR here: #718
and the blog here: https://gogoapps.io/blog/passing-loggers-in-go-golang-logging-best-practices/#global-state

@AaronH88 AaronH88 force-pushed the workceptor_logger branch 4 times, most recently from 4e10450 to 9e5c8e3 Compare February 27, 2023 11:42
}

// Trace outputs detailed packet traversal.
func Trace(format string, v ...interface{}) {
Copy link
Member

Choose a reason for hiding this comment

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

🔥

@AaronH88 AaronH88 force-pushed the workceptor_logger branch 6 times, most recently from 955caa0 to da751b3 Compare March 1, 2023 14:35
@@ -19,7 +19,7 @@ require (
github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8
github.com/stretchr/testify v1.8.1
github.com/vishvananda/netlink v1.1.0
golang.org/x/net v0.0.0-20220630215102-69896b714898
golang.org/x/net v0.5.0
Copy link
Member

Choose a reason for hiding this comment

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

@simaishi @rooftopcellist Do changes to these files break anything on your end? Unsure how the downstream golang builds work these days.

Copy link
Contributor

Choose a reason for hiding this comment

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

We will need to re-create vendor tarball, but please go ahead and merge when you're ready. When a commit requires new vendor file, a pre-merge job for rpm build will fail and we'll know an update is needed.

@AaronH88 AaronH88 force-pushed the workceptor_logger branch 6 times, most recently from b34b26f to 1714b9f Compare March 3, 2023 11:27
…kage. Removed unneeded log functions in logger.go.
@AaronH88 AaronH88 merged commit 2b660e4 into ansible:devel Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants