irmen / Pyro5

Pyro 5 - Python remote objects
https://pyro5.readthedocs.io
MIT License
303 stars 36 forks source link

[FR] flush stdout after print URI #52

Closed Cologler closed 3 years ago

Cologler commented 3 years ago

When I use pm2 to launch the name server, nothing logs to the stdout.

Finally, I added sys.stdout.flush() before the daemon.requestLoop() and it worked.

https://github.com/irmen/Pyro5/blob/0f09262d4bd3957db3fa0d3ce3efbe7390093aed/Pyro5/nameserver.py#L679-L683