-
Notifications
You must be signed in to change notification settings - Fork 811
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
Add log level setting in allocator #1880
Conversation
cmd/allocator/main.go
Outdated
@@ -66,10 +67,19 @@ const ( | |||
func main() { | |||
conf := parseEnvFlags() | |||
|
|||
logger.WithField("version", pkg.Version).WithField("ctlConf", conf). | |||
logger.WithField("version", pkg.Version).WithField("conf", conf). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a remnant of the controller.
I fixed it, but I'll put it back if it looks problematic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, can we roll this back. Better to be consistent between each binary.
Build Failed 😱 Build Id: fe4b00b2-d158-4f97-bc98-52a481681fb2 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
f51630d
to
75cb93f
Compare
Build Succeeded 👏 Build Id: 87865a47-4f1e-4555-886d-585070aa698c The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great - just that one small reversion, and this is good to go!
cmd/allocator/main.go
Outdated
@@ -66,10 +67,19 @@ const ( | |||
func main() { | |||
conf := parseEnvFlags() | |||
|
|||
logger.WithField("version", pkg.Version).WithField("ctlConf", conf). | |||
logger.WithField("version", pkg.Version).WithField("conf", conf). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, can we roll this back. Better to be consistent between each binary.
Thank you. I put it back.
Just out of curiosity, what are the benefits of consistency between binaries? |
|
It's certainly a break change. |
Build Succeeded 👏 Build Id: 937661f0-4b72-4180-b4ab-266924fb60ef The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
Build Succeeded 👏 Build Id: ca7ddb29-2ed8-491b-8fdc-eb1d9e35dc44 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 8398a7, markmandel The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / Why we need it:
When the number of requests is high, most of the logs become noise.
I wanted to set the log level to
error
, so I put out this PR.Which issue(s) this PR fixes:
Closes #1879
Special notes for your reviewer: