diff --git a/bridgev2/matrix/mxmain/main.go b/bridgev2/matrix/mxmain/main.go index c1bfb9ee..2c0c07b9 100644 --- a/bridgev2/matrix/mxmain/main.go +++ b/bridgev2/matrix/mxmain/main.go @@ -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 } } diff --git a/bridgev2/matrix/websocket.go b/bridgev2/matrix/websocket.go index 36b8bca4..c679f960 100644 --- a/bridgev2/matrix/websocket.go +++ b/bridgev2/matrix/websocket.go @@ -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 {