diff --git a/src/channel/PhutilLogFileChannel.php b/src/channel/PhutilLogFileChannel.php --- a/src/channel/PhutilLogFileChannel.php +++ b/src/channel/PhutilLogFileChannel.php @@ -16,12 +16,19 @@ public function read() { $buffer = parent::read(); - $this->log('>>> '.phutil_loggable_string($buffer)); + + if (strlen($buffer)) { + $this->log('>>> '.phutil_loggable_string($buffer)); + } + return $buffer; } public function write($message) { - $this->log('<<< '.phutil_loggable_string($message)); + if (strlen($message)) { + $this->log('<<< '.phutil_loggable_string($message)); + } + return parent::write($message); }