diff --git a/ApnsPHP/Abstract.php b/ApnsPHP/Abstract.php index ba16771c..1b5a3900 100644 --- a/ApnsPHP/Abstract.php +++ b/ApnsPHP/Abstract.php @@ -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})..."