Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14013055
D17368.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
677 B
Referenced Files
None
Subscribers
None
D17368.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D17368: In PhutilLogFileChannel, don't log empty messages
Attached
Detach File
Event Timeline
Log In to Comment