mirror of https://github.com/jetkvm/kvm.git
Fix shutdown log level and order per PR review
- Change logger.Info() to logger.Log() for shutdown message to ensure it always logs - Move stopAudio() before logging to stop audio first, then log shutdown Addresses PR #718 review comment
This commit is contained in:
parent
cd2d4d752c
commit
2e84354d78
3
main.go
3
main.go
|
|
@ -140,9 +140,8 @@ func Main() {
|
||||||
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
|
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
|
||||||
<-sigs
|
<-sigs
|
||||||
|
|
||||||
logger.Info().Msg("JetKVM Shutting Down")
|
|
||||||
|
|
||||||
stopAudio()
|
stopAudio()
|
||||||
|
logger.Log().Msg("JetKVM Shutting Down")
|
||||||
|
|
||||||
//if fuseServer != nil {
|
//if fuseServer != nil {
|
||||||
// err := setMassStorageImage(" ")
|
// err := setMassStorageImage(" ")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue