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

Add log level setting in allocator #1880

Merged
merged 3 commits into from Nov 3, 2020

Conversation

8398a7
Copy link
Contributor

@8398a7 8398a7 commented Oct 30, 2020

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking
/kind bug
/kind cleanup
/kind documentation

/kind feature

/kind hotfix

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:

@@ -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).
Copy link
Contributor Author

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.

Copy link
Member

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.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: fe4b00b2-d158-4f97-bc98-52a481681fb2

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

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:

  • git fetch https://github.com/googleforgames/agones.git pull/1880/head:pr_1880 && git checkout pr_1880
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.10.0-75cb93f

Copy link
Member

@markmandel markmandel left a 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!

@@ -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).
Copy link
Member

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.

@8398a7
Copy link
Contributor Author

8398a7 commented Nov 3, 2020

Thank you. I put it back.

Better to be consistent between each binary.

Just out of curiosity, what are the benefits of consistency between binaries?

@markmandel
Copy link
Member

Just out of curiosity, what are the benefits of consistency between binaries?

  • People know that they can find the same thing in each log, so there's no mystery on where to find them
  • If people are parsing the structured log format, there's no breaking changes there
  • Developers know what the standard is across the project, so there's less ambiguity.

@8398a7
Copy link
Contributor Author

8398a7 commented Nov 3, 2020

It's certainly a break change.
I learned a lot about the others as well. Thank you.

@agones-bot
Copy link
Collaborator

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:

  • git fetch https://github.com/googleforgames/agones.git pull/1880/head:pr_1880 && git checkout pr_1880
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.10.0-4c70caf

@agones-bot
Copy link
Collaborator

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:

  • git fetch https://github.com/googleforgames/agones.git pull/1880/head:pr_1880 && git checkout pr_1880
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.10.0-ad56070

Copy link
Member

@markmandel markmandel left a comment

Choose a reason for hiding this comment

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

Great stuff!

@google-oss-robot
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@markmandel markmandel merged commit beac12b into googleforgames:master Nov 3, 2020
@markmandel markmandel added this to the 1.10.0 milestone Nov 3, 2020
@8398a7 8398a7 deleted the addAllocatorLogLevel branch November 3, 2020 00:48
@markmandel markmandel added area/operations Installation, updating, metrics etc kind/feature New features for Agones labels Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/operations Installation, updating, metrics etc cla: yes kind/feature New features for Agones lgtm size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding allocator log level
4 participants