Skip to content

Commit

Permalink
Logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Nov 14, 2013
1 parent d361aca commit 04775d9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions framework/ActiveSync/lib/Horde/ActiveSync/State/Mongo.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,9 @@ public function updateState(
$type, array $change, $origin = Horde_ActiveSync::CHANGE_ORIGIN_NA,
$user = null, $clientid = '')
{
$this->_logger->info(sprintf('[%s] Updating state during %s', $this->_procid, $type));
$this->_logger->info(sprintf(
'[%s] Horde_ActiveSync_State_Mongo::updateState(%s, %s, %d, %s, %s)',
$this->_procid, $type, serialize($change), $origin, $user, $clientid));

if ($origin == Horde_ActiveSync::CHANGE_ORIGIN_PIM) {
if ($this->_type == Horde_ActiveSync::REQUEST_TYPE_FOLDERSYNC) {
Expand Down Expand Up @@ -1221,7 +1223,7 @@ public function deleteSyncCache($devid, $user = null)
*/
protected function _getPIMChangeTS(array $changes)
{
// // Get the allowed synckeys to include.
// Get the allowed synckeys to include.
$uuid = self::getSyncKeyUid($this->_syncKey);
$cnt = self::getSyncKeyCounter($this->_syncKey);
$keys = array();
Expand Down Expand Up @@ -1283,6 +1285,10 @@ protected function _getPIMChangeTS(array $changes)
*/
protected function _havePIMChanges()
{
$this->_logger->info(sprintf(
'[%s] Horde_ActiveSync_State_Mongo::_havePIMChanges() for %s',
$this->_procid, $this->_collection['serverid']));

$c = $this->_collection['class'] == Horde_ActiveSync::CLASS_EMAIL ?
$this->_db->HAS_mailmap :
$this->_db->HAS_map;
Expand Down

0 comments on commit 04775d9

Please sign in to comment.