mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-17 04:30:03 +02:00
cmd/thalos/server.go: Don't log error if we get a (normal) close message from ship.
This commit is contained in:
parent
9dcb8c4f0c
commit
3cb25a5717
1 changed files with 6 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ import (
|
|||
"github.com/cenkalti/backoff/v4"
|
||||
eos "github.com/eoscanada/eos-go"
|
||||
shipclient "github.com/eosswedenorg-go/antelope-ship-client"
|
||||
shipws "github.com/eosswedenorg-go/antelope-ship-client/websocket"
|
||||
"github.com/eosswedenorg-go/pid"
|
||||
"github.com/eosswedenorg/thalos/api/message"
|
||||
_ "github.com/eosswedenorg/thalos/api/message/json"
|
||||
|
|
@ -113,6 +114,11 @@ func readerLoop(conf *config.Config, running *bool, shClient *shipclient.Stream,
|
|||
return
|
||||
}
|
||||
|
||||
if shipws.IsCloseError(err) {
|
||||
log.Info("SHIP Connection closed")
|
||||
return
|
||||
}
|
||||
|
||||
log.WithError(err).Error("Failed to read from ship")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue