Skip to content

Commit

Permalink
Fix Error logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
duccio committed Nov 15, 2011
1 parent fd1e461 commit bd54fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ApnsPHP/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,10 @@ public function connect()
try {
$bConnected = $this->_connect();
} catch (ApnsPHP_Exception $e) {
$this->_log('ERROR: ' . $e->getMessage());
if ($nRetry >= $this->_nConnectRetryTimes) {
throw $e;
} else {
$this->_log('ERROR: ' . $e->getMessage());
$this->_log(
"INFO: Retry to connect (" . ($nRetry+1) .
"/{$this->_nConnectRetryTimes})..."
Expand Down

0 comments on commit bd54fda

Please sign in to comment.