Skip to content

Commit

Permalink
All IMAP errors in IMP should be logged at a warning level
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Feb 17, 2014
1 parent 660c47d commit 3815d50
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions imp/lib/Imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -707,13 +707,11 @@ public function __call($method, $params)
try {
$result = call_user_func_array(array($this->_ob, $method), $params);
} catch (Horde_Imap_Client_Exception $e) {
Horde::log($e->raw_msg, 'WARN');
$error = new IMP_Imap_Exception($e);
if ($auth_e = $error->authException(false)) {
throw $auth_e;
}

Horde::log($e->raw_msg);
throw $error;
throw ($auth_e = $error->authException(false))
? $auth_e
: $error;
}

/* Special handling for various methods. */
Expand Down

0 comments on commit 3815d50

Please sign in to comment.