We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 55687af + b62fe1f commit 9d5e3e6Copy full SHA for 9d5e3e6
1 file changed
src/Control/Distributed/Process/Platform/Supervisor.hs
@@ -1340,7 +1340,13 @@ filterInitFailures :: ProcessId
1340
-> Process ()
1341
filterInitFailures sup pid ex = do
1342
case ex of
1343
- ChildInitFailure _ -> liftIO $ throwIO ex
+ ChildInitFailure _ -> do
1344
+ -- This is used as a `catches` handler in multiple places
1345
+ -- and matches first before the other handlers that
1346
+ -- would call logFailure.
1347
+ -- We log here to avoid silent failure in those cases.
1348
+ logEntry Log.error $ mkReport "ChildInitFailure" sup (show pid) (show ex)
1349
+ liftIO $ throwIO ex
1350
ChildInitIgnore -> Unsafe.cast sup $ IgnoreChildReq pid
1351
1352
--------------------------------------------------------------------------------
0 commit comments