Skip to content

Commit

Permalink
bridgev2/matrix: log type of interrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 8, 2024
1 parent 8d3c208 commit 3312a58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bridgev2/matrix/mxmain/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
2 changes: 1 addition & 1 deletion bridgev2/matrix/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3312a58

Please sign in to comment.