🐛 fix incorrect logr usage#193
Conversation
| if kindMatchErr, ok := err.(*meta.NoKindMatchError); ok { | ||
| log.Error(err, "if %s is a CRD, should install it before calling Start", | ||
| kindMatchErr.GroupKind) | ||
| log.Error(err, fmt.Sprintf("if %s is a CRD, should install it before calling Start", |
There was a problem hiding this comment.
For better or for worse, this is specifically discouraged by logr. https://github.com/go-logr/logr/blob/9fb12b3b21c5415d16ac18dc5cd42c1cfdd40c4e/logr.go#L11
logr wants you to use structured logging.
a8a9007 to
efff64f
Compare
DirectXMan12
left a comment
There was a problem hiding this comment.
nit around working, otherwise fine
| if kindMatchErr, ok := err.(*meta.NoKindMatchError); ok { | ||
| log.Error(err, "if %s is a CRD, should install it before calling Start", | ||
| kindMatchErr.GroupKind) | ||
| log.Error(err, "Kind should be installed before calling Start", |
There was a problem hiding this comment.
please add the working back in as "if kind is a CRD, it should be installed before calling start"
efff64f to
d0f126b
Compare
|
/lgtm |
|
looks failed travis blocked this PR. |
|
/assign @DirectXMan12 |
|
@interma can you rebase on the latest master? there was a pr up to fix that flake |
d0f126b to
c66fe39
Compare
|
Sure, rebased. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DirectXMan12, interma The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
🐛 fix incorrect logr usage
Update GitBook docs with warning about core-type scaffold tests failing
Fix: #187