Skip to content

Commit

Permalink
Don't log these as errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Sep 22, 2015
1 parent 0dc2110 commit 940ebbe
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions framework/Core/lib/Horde/Core/ActiveSync/Driver.php
Expand Up @@ -352,7 +352,7 @@ public function getFolders()
if (!empty($temp_folder)) {
$folders[] = $temp_folder;
} else {
$this->_logger->err('Unable to find a useable calendar folder.');
$this->_logger->info('Unable to find a useable calendar folder.');
}
} catch (Horde_ActiveSync_Exception $e) {
}
Expand All @@ -363,9 +363,10 @@ public function getFolders()
if (!empty($temp_folder)) {
$folders[] = $temp_folder;
} else {
$this->_logger->err('Unable to find a useable calendar folder.');
$this->_logger->info('Unable to find a useable calendar folder.');
}
} catch (Horde_ActiveSync_Exception $e) {
$this->_logger->info('Unable to find a useable calendar folder.');
}
}
}
Expand All @@ -386,9 +387,10 @@ public function getFolders()
if (!empty($temp_folder)) {
$folders[] = $temp_folder;
} else {
$this->_logger->err('Unable to find a useable contacts folder.');
$this->_logger->info('Unable to find a useable contacts folder.');
}
} catch (Horde_ActiveSync_Exception $e) {
$this->_logger->info('Unable to find a useable contacts folder.');
}
}
} else {
Expand All @@ -397,9 +399,10 @@ public function getFolders()
if (!empty($temp_folder)) {
$folders[] = $temp_folder;
} else {
$this->_logger->err('Unable to find a useable contacts folder.');
$this->_logger->info('Unable to find a useable contacts folder.');
}
} catch (Horde_ActiveSync_Exception $e) {
$this->_logger->info('Unable to find a useable contacts folder.');
}
}
}
Expand All @@ -420,9 +423,10 @@ public function getFolders()
if (!empty($temp_folder)) {
$folders[] = $temp_folder;
} else {
$this->_logger->err('Unable to find a useable tasks folder.');
$this->_logger->info('Unable to find a useable tasks folder.');
}
} catch (Horde_ActiveSync_Exception $e) {
$this->_logger->info('Unable to find a useable tasks folder.');
}
}
} else {
Expand All @@ -431,9 +435,10 @@ public function getFolders()
if (!empty($temp_folder)) {
$folders[] = $temp_folder;
} else {
$this->_logger->err('Unable to find a useable tasks folder.');
$this->_logger->info('Unable to find a useable tasks folder.');
}
} catch (Horde_ActiveSync_Exception $e) {
$this->_logger->info('Unable to find a useable tasks folder.');
}
}
}
Expand All @@ -454,9 +459,10 @@ public function getFolders()
if (!empty($temp_folder)) {
$folders[] = $temp_folder;
} else {
$this->_logger->err('Unable to find a useable notes folder.');
$this->_logger->info('Unable to find a useable notes folder.');
}
} catch (Horde_ActiveSync_Exception $e) {
$this->_logger->info('Unable to find a useable notes folder.');
}
}
} else {
Expand All @@ -467,7 +473,7 @@ public function getFolders()
if (!empty($temp_folder)) {
$folders[] = $temp_folder;
} else {
$this->_logger->err('Unable to find a useable notes folder.');
$this->_logger->info('Unable to find a useable notes folder.');
}
}
}
Expand Down Expand Up @@ -507,11 +513,15 @@ public function getFolders()
* - primary: This folder is the 'default' collection for this class.
* - display: The display name for FOLDER_TYPE_USER folders.
*
* @return Horde_ActiveSync_Message_Folder
* @return Horde_ActiveSync_Message_Folder The folder object.
* @throws Horde_ActiveSync_Exception
*/
protected function _getFolder($id, array $params = array())
{
if (empty($id)) {
throw new Horde_ActiveSync_Exception();
}

// First check for legacy/multiplexed IDs.
switch ($id) {
case self::APPOINTMENTS_FOLDER_UID:
Expand Down

0 comments on commit 940ebbe

Please sign in to comment.