We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 043c7f3 commit f4ff4aeCopy full SHA for f4ff4ae
smclient/smclient.go
@@ -256,13 +256,13 @@ func (client *SMClient) createConnection(
256
257
for {
258
if err != nil && len(client.closeChannel) == 0 {
259
- log.Errorf("Error register to CM: %v", aoserrors.Wrap(err))
+ log.WithField("err", err).Warning("Error register to CM")
260
} else {
261
if err = client.processMessages(); err != nil {
262
if errors.Is(err, io.EOF) {
263
log.Debug("Connection is closed")
264
265
- log.Errorf("Connection error: %v", aoserrors.Wrap(err))
+ log.WithField("err", err).Warning("Connection error")
266
}
267
268
0 commit comments