Ref T2794. The LogFile channel is used to debug another channel by sending all the messages to a logfile.
We perform empty (zero-length) reads over nonblocking channels in various reasonable situations. Currently, these get written to the logfile as empty lines. However, they are probably never useful.
Instead, only write data if it has nonzero length.