Skip to content

Commit bae39c9

Browse files
committed
log each call to Supervisor.tryRestart
2 parents 9d5e3e6 + c551182 commit bae39c9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Control/Distributed/Process/Platform/Supervisor.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,8 @@ tryRestart :: ProcessId
953953
-> DiedReason
954954
-> Process (ProcessAction State)
955955
tryRestart pid state active' spec reason = do
956+
logEntry Log.debug $
957+
mkReport "tryRestart" pid (childKey spec) (show reason)
956958
case state ^. strategy of
957959
RestartOne _ -> tryRestartChild pid state active' spec reason
958960
strat -> do

0 commit comments

Comments
 (0)