File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
distributed-process/src/Control/Distributed/Process/Internal Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -899,6 +899,13 @@ reconnectPort them = do
899
899
-- Debugging/Tracing --
900
900
--------------------------------------------------------------------------------
901
901
902
+ -- | Send a message to the internal (system) trace facility. If tracing is
903
+ -- enabled, this will create a custom trace event in the event log. Specifically,
904
+ -- the environment variable @DISTRIBUTED_PROCESS_TRACE_FILE@ is set to a valid
905
+ -- path, then trace output will be written to that file. Otherwise, if the GHC
906
+ -- eventlog is enabled (i.e., you've compiled with @-eventlog@ set) and the
907
+ -- relevant @+RTS@ options given, then the message will be sent to the event log.
908
+ -- If neither facility is in use then trace messages will be silently dropped.
902
909
trace :: String -> Process ()
903
910
trace s = do
904
911
node <- processNode <$> ask
You can’t perform that action at this time.
0 commit comments