git.iko.soy/distributed-process
on master help sign in
trace only abnormal process exits
commit927d2bcf81d88416dd0846abd09d4bac08c4ff92 authorTim Watson <tim@rabbitmq.com> dateFri 25 Jan 2013, 03:30 (14 years ago) parentbe75b77
1 file changed+4−1
distributed-process/src/Control/Distributed/Process/Node.hs+4−1
distributed-process/src/Control/Distributed/Process/Node.hs+4−1
@@ -507,7 +507,10 @@ instance Show ProcessKillException where
507507
508508traceNotifyDied :: LocalNode -> Identifier -> DiedReason -> NC ()
509509traceNotifyDied node ident reason =
510− traceNcEventFmt node " " ["[node-controller]", (show ident), (show reason)]
510+ case reason of
511+ DiedNormal -> return ()
512+ _ -> traceNcEventFmt node " "
513+ ["[node-controller]", (show ident), (show reason)]
511514
512515traceNcEvent :: LocalNode -> String -> NC ()
513516traceNcEvent node msg = liftIO $ traceEventIO node msg