Skip to content

Commit f05cad9

Browse files
committed
fixup! Fix log level value reported by Agent to Fleet
1 parent e9a0c2a commit f05cad9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/pkg/agent/application/gateway/fleet/fleet_gateway.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,7 @@ func (f *FleetGateway) execute(ctx context.Context) (*fleetapi.CheckinResponse,
333333
// escMeta struct is incomplete: log a warning
334334
f.log.Warnw("Agent ECSMetadata struct is missing/incomplete", "elastic_ecs_metadata", ecsMeta.Elastic)
335335
} else {
336-
// FIXME
337-
f.log.Errorf("correcting agent loglevel from %s to %s using coordinator state", ecsMeta.Elastic.Agent.LogLevel, state.LogLevel.String())
336+
f.log.Debugf("correcting agent loglevel from %s to %s using coordinator state", ecsMeta.Elastic.Agent.LogLevel, state.LogLevel.String())
338337
// Fix loglevel with the current log level used by coordinator
339338
ecsMeta.Elastic.Agent.LogLevel = state.LogLevel.String()
340339
}

0 commit comments

Comments
 (0)