mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/matrix: log type of interrupt
This commit is contained in:
parent
8d3c208bda
commit
3312a58161
2 changed files with 3 additions and 1 deletions
|
|
@ -398,8 +398,10 @@ func (br *BridgeMain) WaitForInterrupt() int {
|
|||
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
|
||||
select {
|
||||
case <-c:
|
||||
br.Log.Info().Msg("Interrupt signal received from OS")
|
||||
return 0
|
||||
case exitCode := <-br.manualStop:
|
||||
br.Log.Info().Msg("Internal stop signal received")
|
||||
return exitCode
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ func (br *Connector) startWebsocket(wg *sync.WaitGroup) {
|
|||
if errors.Is(err, appservice.ErrWebsocketManualStop) {
|
||||
return
|
||||
} else if closeCommand := (&appservice.CloseCommand{}); errors.As(err, &closeCommand) && closeCommand.Status == appservice.MeowConnectionReplaced {
|
||||
log.Info().Msg("Appservice websocket closed by another instance of the bridge, shutting down...")
|
||||
log.Warn().Msg("Appservice websocket closed by another instance of the bridge, shutting down...")
|
||||
if br.OnWebsocketReplaced != nil {
|
||||
br.OnWebsocketReplaced()
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue