Skip to content

Commit

Permalink
Don't log Turba Facebook errors at an ERR level
Browse files Browse the repository at this point in the history
Token expirations are filling my log file with ERR messages. These
aren't errors.  *Maybe* NOTICE worthy at best. The token probably should
be deleted the first time this happens.
  • Loading branch information
slusarz committed Sep 19, 2014
1 parent 0544b49 commit 5fcbf82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turba/lib/Driver/Facebook.php
Expand Up @@ -209,7 +209,7 @@ protected function _getAddressBook(array $fields = array())
. 'SELECT uid2 FROM friend WHERE uid1=' . $this->_facebook->auth->getLoggedInUser() . ')';
$results = $this->_facebook->fql->run($fql);
} catch (Horde_Service_Facebook_Exception $e) {
Horde::log($e, 'ERR');
Horde::log($e, 'WARN');
if ($e->getCode() == Horde_Service_Facebook_ErrorCodes::API_EC_PARAM_SESSION_KEY) {
throw new Turba_Exception(_("You are not connected to Facebook. Create a Facebook connection in the Global Preferences."));
}
Expand Down

0 comments on commit 5fcbf82

Please sign in to comment.