Skip to content

Nomad auto-discover uses Debugf incorrectly #26456

@andrewkroh

Description

@andrewkroh

The nomad auto-discover provider invokes the logp.Logger's Debugf with an incorrect set of arguments. I noticed two of them, but I recommend doing a quick audit of the rest of the usages in the package to make sure they are all fixed.

{
  "level": "debug",
  "timestamp": "2021-06-23T21:48:38.451Z",
  "logger": "nomad",
  "caller": "nomad/nomad.go:283",
  "message": "nomad%!(EXTRA string=Generated builder event %+v, bus.Event=map[....REDACTED"
}
{
  "level": "debug",
  "timestamp": "2021-06-23T21:48:38.452Z",
  "logger": "nomad",
  "caller": "nomad/nomad.go:228",
  "message": "nomad%!(EXTRA string=Publishing event: %+v, bus.Event=map[....REDACTED"
}

Version: filebeat version 8.0.0 (arm64), libbeat 8.0.0 [0ae157ed7c4341035371655cbf426e2f071bc178 built 2021-06-23 21:01:19 +0000 UTC]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions