removing printlns on successful shutdown
This commit is contained in:
4
bolt.go
4
bolt.go
@@ -112,8 +112,6 @@ func (b *bolt) Start() error {
|
|||||||
return fmt.Errorf("failed to open websocket connection with Discord: %e", err)
|
return fmt.Errorf("failed to open websocket connection with Discord: %e", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println("bot started")
|
|
||||||
|
|
||||||
sigChannel := make(chan os.Signal, 1)
|
sigChannel := make(chan os.Signal, 1)
|
||||||
signal.Notify(sigChannel, os.Interrupt)
|
signal.Notify(sigChannel, os.Interrupt)
|
||||||
<-sigChannel
|
<-sigChannel
|
||||||
@@ -131,10 +129,8 @@ func (b *bolt) Start() error {
|
|||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
log.Println("shutdown timed out waiting for handlers to finish, some may have been incomplete")
|
log.Println("shutdown timed out waiting for handlers to finish, some may have been incomplete")
|
||||||
case <-closeChan:
|
case <-closeChan:
|
||||||
log.Println("handler routines cleaned")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println("exiting")
|
|
||||||
return b.stop()
|
return b.stop()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user