Skip to content

Commit

Permalink
Honor the LOG_DETAILED setting even with streams.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed May 31, 2016
1 parent b3d606e commit 3676d7d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Wbxml/Encoder.php
Expand Up @@ -309,7 +309,13 @@ private function _content($content)
$this->_logContent($content);
}
} else {
$this->_logContent('[STREAM]');
if ($this->_logLevel == self::LOG_DETAILED) {
rewind($content);
$this->_logContent(stream_get_contents($content));
rewind($content);
} else {
$this->_logContent('[STREAM]');
}
}
$this->_outByte(self::STR_I);
$this->_outTermStr($content);
Expand Down

0 comments on commit 3676d7d

Please sign in to comment.