@@ -180,12 +180,12 @@ def spawn(name: nil, restart: false, key: nil, health_check_timeout: nil, &block
180180
181181 fiber do
182182 while @running
183- Console . info ( self , "Starting child..." , child : { key : key , name : name , restart : restart , health_check_timeout : health_check_timeout } , statistics : @statistics )
183+ Console . debug ( self , "Starting child..." , child : { key : key , name : name , restart : restart , health_check_timeout : health_check_timeout } , statistics : @statistics )
184184
185185 child = self . start ( name , &block )
186186 state = insert ( key , child )
187187
188- Console . info ( self , "Started child." , child : child , spawn : { key : key , restart : restart , health_check_timeout : health_check_timeout } , statistics : @statistics )
188+ Console . debug ( self , "Started child." , child : child , spawn : { key : key , restart : restart , health_check_timeout : health_check_timeout } , statistics : @statistics )
189189
190190 # If a health check is specified, we will monitor the child process and terminate it if it does not update its state within the specified time.
191191 if health_check_timeout
@@ -213,7 +213,7 @@ def spawn(name: nil, restart: false, key: nil, health_check_timeout: nil, &block
213213 end
214214
215215 if status &.success?
216- Console . info ( self , "Child exited successfully." , status : status , running : @running )
216+ Console . debug ( self , "Child exited successfully." , status : status , running : @running )
217217 else
218218 @statistics . failure!
219219 Console . error ( self , "Child exited with error!" , status : status , running : @running )
@@ -225,8 +225,6 @@ def spawn(name: nil, restart: false, key: nil, health_check_timeout: nil, &block
225225 break
226226 end
227227 end
228- ensure
229- Console . info ( self , "Child process management loop exited." , running : @running )
230228 end . resume
231229
232230 return true
0 commit comments