@@ -91,11 +91,11 @@ def setup(container)
9191 # Start the container unless it's already running.
9292 def start
9393 unless @container
94- Console . info ( self ) { "Controller starting..." }
94+ Console . info ( self , "Controller starting..." )
9595 self . restart
9696 end
9797
98- Console . info ( self ) { "Controller started..." }
98+ Console . info ( self , "Controller started..." )
9999 end
100100
101101 # Stop the container if it's running.
@@ -111,9 +111,9 @@ def restart
111111 if @container
112112 @notify &.restarting!
113113
114- Console . debug ( self ) { "Restarting container..." }
114+ Console . info ( self , "Restarting container..." )
115115 else
116- Console . debug ( self ) { "Starting container..." }
116+ Console . info ( self , "Starting container..." )
117117 end
118118
119119 container = self . create_container
@@ -127,13 +127,14 @@ def restart
127127 end
128128
129129 # Wait for all child processes to enter the ready state.
130- Console . debug ( self , "Waiting for startup..." )
130+ Console . info ( self , "Waiting for startup..." )
131131 container . wait_until_ready
132- Console . debug ( self , "Finished startup." )
132+ Console . info ( self , "Finished startup." )
133133
134134 if container . failed?
135135 @notify &.error! ( "Container failed to start!" )
136136
137+ Console . info ( self , "Stopping failed container..." )
137138 container . stop ( false )
138139
139140 raise SetupError , container
@@ -145,7 +146,7 @@ def restart
145146 container = nil
146147
147148 if old_container
148- Console . debug ( self , "Stopping old container..." )
149+ Console . info ( self , "Stopping old container..." )
149150 old_container &.stop ( @graceful_stop )
150151 end
151152
@@ -168,11 +169,9 @@ def reload
168169 end
169170
170171 # Wait for all child processes to enter the ready state.
171- Console . debug ( self , "Waiting for startup..." )
172-
172+ Console . info ( self , "Waiting for startup..." )
173173 @container . wait_until_ready
174-
175- Console . debug ( self , "Finished startup." )
174+ Console . info ( self , "Finished startup." )
176175
177176 if @container . failed?
178177 @notify . error! ( "Container failed to reload!" )
0 commit comments