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

后端 未结 3 756
慢半拍i
慢半拍i 2021-02-10 15:50

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:09

    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?

提交回复
热议问题