Skip to content

Incorrect logr usage #187

@rohitagarwal003

Description

@rohitagarwal003

log.Error(err, "if %s is a CRD, should install it before calling Start",
kindMatchErr.GroupKind)

This seems to not be using logr correctly. I got the following error when I hit this line:

{"level":"dpanic","ts":1540850293.0815783,"logger":"kubebuilder.source","caller":"zapr/zapr.go:129","msg":"odd number of arguments passed as key-value pairs for logging" ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions