Skip to content

[LOW] Misleading error message in metrics certificate watcher setup #199

Description

@pradeepto

Description

cmd/main.go:175

setupLog.Error(err, "to initialize metrics certificate watcher", "error", err)

Two problems:

  1. Message is missing "failed" — reads as "to initialize" instead of "failed to initialize"
  2. The error is logged twice — once as the first arg to Error() and again as a key-value pair

Fix

setupLog.Error(err, "Failed to initialize metrics certificate watcher")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions