0rpc / zerorpc-python

zerorpc for python
http://www.zerorpc.io
Other
3.17k stars 378 forks source link

Put non-output to sys.stderr #217

Closed shiplu closed 5 years ago

shiplu commented 5 years ago

There are 2 kinds of print statements.

  1. Progress report. For example "connecting . . .", "binding . . .". This is more like logging and should be put it stderr.
  2. Inspection result of a server method which is used to generate help message. Such help messages should also be in stderr.

The benefit is we can pipe the method output to other commands or redirect it to files without adding invalid log lines.

shiplu commented 5 years ago

@bombela I have applied the changes suggested by you. Would you review this again?