Page MenuHomePhabricator

D17368.id.diff
No OneTemporary

D17368.id.diff

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);
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 2, 11:59 PM (2 d, 14 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6737862
Default Alt Text
D17368.id.diff (677 B)

Event Timeline