From 3663a8fb31a40c19a75e5a9083197ddacc8f37b3 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 24 Nov 2019 21:40:25 -0800 Subject: [PATCH] Add debug output when dealing with a server that is being restarted --- wings.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wings.go b/wings.go index 0c97a40..a53daab 100644 --- a/wings.go +++ b/wings.go @@ -109,6 +109,11 @@ func main() { // If the server is not in a running state right now but according to the configuration it // should be, we want to go ahead and restart the instance. if s.State == server.ProcessRunningState || s.State == server.ProcessStartingState { + zap.S().Infow( + "server state does not match last recorded state in configuration, starting instance now", + zap.String("server", s.Uuid), + ) + if err := s.Environment.Start(); err != nil { zap.S().Warnw( "failed to put server instance back in running state",