Skip to content

Commit f4ff4ae

Browse files
[smclient] Fix alerts
Signed-off-by: Mykola Kobets <mykola_kobets@epam.com>
1 parent 043c7f3 commit f4ff4ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

smclient/smclient.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,13 @@ func (client *SMClient) createConnection(
256256

257257
for {
258258
if err != nil && len(client.closeChannel) == 0 {
259-
log.Errorf("Error register to CM: %v", aoserrors.Wrap(err))
259+
log.WithField("err", err).Warning("Error register to CM")
260260
} else {
261261
if err = client.processMessages(); err != nil {
262262
if errors.Is(err, io.EOF) {
263263
log.Debug("Connection is closed")
264264
} else {
265-
log.Errorf("Connection error: %v", aoserrors.Wrap(err))
265+
log.WithField("err", err).Warning("Connection error")
266266
}
267267
}
268268
}

0 commit comments

Comments
 (0)