Skip to content

cmd/openshift-install/create: don't log nil errors#603

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
crawford:err
Nov 2, 2018
Merged

cmd/openshift-install/create: don't log nil errors#603
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
crawford:err

Conversation

@crawford
Copy link
Contributor

@crawford crawford commented Nov 2, 2018

The call to cancel isn't a synchronous operation and the closure
executes to completion. As a result, the debug call which logs the error
should be in an else branch so it isn't printed if there is no error.
Without this change, the following would show up in the log:

INFO API v1.11.0+d4cacc0 up
DEBUG API not up yet: %!s(<nil>)

The call to cancel isn't a synchronous operation and the closure
executes to completion. As a result, the debug call which logs the error
should be in an else branch so it isn't printed if there is no error.
Without this change, the following would show up in the log:

    INFO API v1.11.0+d4cacc0 up
    DEBUG API not up yet: %!s(<nil>)
@crawford crawford requested a review from wking November 2, 2018 22:11
@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 Nov 2, 2018
@wking
Copy link
Member

wking commented Nov 2, 2018

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 2, 2018
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: crawford, wking

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

@openshift-merge-robot openshift-merge-robot merged commit c14f5be into openshift:master Nov 2, 2018
@crawford crawford deleted the err branch November 2, 2018 22:47
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