mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Log host identifier in EnrollAgent service logging (#2313)
This can help identify circumstances in which multiple hosts are providing the same identifier and clobbering the node key for each other.
This commit is contained in:
parent
c61ba759dd
commit
f2d3683d80
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ func (mw loggingMiddleware) EnrollAgent(ctx context.Context, enrollSecret string
|
|||
"method", "EnrollAgent",
|
||||
"ip_addr", ctx.Value(kithttp.ContextKeyRequestRemoteAddr).(string),
|
||||
"x_for_ip_addr", ctx.Value(kithttp.ContextKeyRequestXForwardedFor).(string),
|
||||
"host_identifier", hostIdentifier,
|
||||
"err", err,
|
||||
"took", time.Since(begin),
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue