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

pkg/cluster: fix running telemeter without verbose #274

Merged
merged 1 commit into from Dec 11, 2019

Conversation

squat
Copy link
Contributor

@squat squat commented Dec 11, 2019

Currently, if telemeter-server is run without the -v flag, it will
bail with the following error:

level=info caller=main.go:156 ts=2019-12-11T14:09:52.043501508Z msg="Telemeter server initialized."
level=error caller=main.go:159 ts=2019-12-11T14:09:52.221533957Z err="unable to configure cluster: Cannot specify both LogOutput and Logger. Please choose a single log configuration setting."

This commit fixes the configuration of the logger for memberlist so that
it telemeter-server can be run without -v.

XREF: #237

cc @kakkoyun @metalmatze @brancz @bwplotka

Signed-off-by: Lucas Servén Marín lserven@gmail.com

Currently, if telemeter-server is run without the `-v` flag, it will
bail with the following error:
```
level=info caller=main.go:156 ts=2019-12-11T14:09:52.043501508Z msg="Telemeter server initialized."
level=error caller=main.go:159 ts=2019-12-11T14:09:52.221533957Z err="unable to configure cluster: Cannot specify both LogOutput and Logger. Please choose a single log configuration setting."
```

This commit fixes the configuration of the logger for memberlist so that
it telemeter-server can be run without `-v`.

XREF: openshift#237

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 11, 2019
@brancz
Copy link
Contributor

brancz commented Dec 11, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 11, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brancz, bwplotka, squat

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

@openshift-merge-robot openshift-merge-robot merged commit 82dc726 into openshift:master Dec 11, 2019
@squat squat deleted the fixlogging branch December 11, 2019 16:14
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.

None yet

5 participants