Skip to content

Commit b48f5d8

Browse files
authored
[opampsupervisor] log connection message (#40333)
#### Description Change the `onConnect` log to be an info. This makes is clear when reading the opampsupervisor logs when the connection happened successfully. This log should not spam, as the connection should only happen once when the agent comes online or under other interesting situations, like needing to reconnect after the server disappeared.
1 parent f56294a commit b48f5d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/opampsupervisor/supervisor/supervisor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ func (s *Supervisor) startOpAMPClient() error {
645645
}(),
646646
Callbacks: types.Callbacks{
647647
OnConnect: func(_ context.Context) {
648-
s.telemetrySettings.Logger.Debug("Connected to the server.")
648+
s.telemetrySettings.Logger.Info("Connected to the server.")
649649
},
650650
OnConnectFailed: func(_ context.Context, err error) {
651651
s.telemetrySettings.Logger.Error("Failed to connect to the server", zap.Error(err))

0 commit comments

Comments
 (0)