Erlang: How to view output of io:format/2 calls in processes spawned on remote nodes

后端 未结 3 1312
天涯浪人
天涯浪人 2021-02-10 15:31

I am working on a decentralized Erlang application. I am currently working on a single PC and creating multiple nodes by initializing erl with the -sname

3条回答
  •  广开言路
    2021-02-10 16:06

    What you are seeing is processes with their group leader set to a pid on the node they were spawned from. See erlang:group_leader. The group leader is where they send their output to.

    You call this output "debugging output", so are you sure that you dont want to start the sasl application on the nodes and use error_logger?

提交回复
热议问题