Skip to content

Commit

Permalink
Add logging here.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 18, 2016
1 parent 925ba75 commit c7007d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions framework/ActiveSync/lib/Horde/ActiveSync/Message/Base.php
Expand Up @@ -481,6 +481,10 @@ public function decodeStream(Horde_ActiveSync_Wbxml_Decoder &$decoder)
public function encodeStream(Horde_ActiveSync_Wbxml_Encoder &$encoder)
{
if (!$this->_preEncodeValidation()) {
$this->_logger->err(sprintf(
'Pre-encoding validation failded for %s item',
get_class($this))
);
throw new Horde_ActiveSync_Exception(sprintf(
'Pre-encoding validation failded for %s item',
get_class($this))
Expand Down

0 comments on commit c7007d8

Please sign in to comment.