Skip to content

fix log format in activator#2083

Merged
knative-prow-robot merged 1 commit intoknative:masterfrom
lichuqiang:cleanup1
Sep 27, 2018
Merged

fix log format in activator#2083
knative-prow-robot merged 1 commit intoknative:masterfrom
lichuqiang:cleanup1

Conversation

@lichuqiang
Copy link
Copy Markdown
Contributor

Proposed Changes

nit: When walking through the code, I noticed some of the log in activator are not correctly formatted.

/assign @mattmoor

Release Note

NONE

@knative-prow-robot knative-prow-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 25, 2018
@mattmoor mattmoor assigned mdemirhan and unassigned mattmoor Sep 25, 2018
@mattmoor
Copy link
Copy Markdown
Member

/ok-to-test

@knative-prow-robot knative-prow-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 25, 2018
Comment thread cmd/activator/main.go Outdated
servingClient, err := clientset.NewForConfig(clusterConfig)
if err != nil {
logger.Fatal("Error building serving clientset: %v", zap.Error(err))
logger.Fatalf("Error building serving clientset: %v", zap.Error(err))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for catching this. I believe the right fix should be:
logger.Fatal("Error building serving clientset", zap.Error(err))
(removal of %v)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread cmd/activator/main.go Outdated
promExporter, err := prometheus.NewExporter(prometheus.Options{Namespace: "activator"})
if err != nil {
logger.Fatal("Failed to create the Prometheus exporter: %v", zap.Error(err))
logger.Fatalf("Failed to create the Prometheus exporter: %v", zap.Error(err))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same as above.

Comment thread cmd/activator/main.go Outdated
reporter, err := activator.NewStatsReporter()
if err != nil {
logger.Fatal("Failed to create stats reporter: %v", zap.Error(err))
logger.Fatalf("Failed to create stats reporter: %v", zap.Error(err))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same as above.

@mdemirhan
Copy link
Copy Markdown
Contributor

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 27, 2018
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lichuqiang, mdemirhan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 27, 2018
@knative-prow-robot knative-prow-robot merged commit 6b79fd3 into knative:master Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants