diff options
| author | 2014-09-12 21:10:45 +0200 | |
|---|---|---|
| committer | 2014-09-12 21:10:45 +0200 | |
| commit | 098f5e6d747cf442b72f75a22a9ce43d36605d65 (patch) | |
| tree | 92282a569722829b09527a5769f26622a20bef84 /app/Controllers/updateController.php | |
| parent | 213bc2b9ddef88fd9e3cb50ac0893742f5fdd101 (diff) | |
Log error if update.freshrss.org is unreachable
Diffstat (limited to 'app/Controllers/updateController.php')
| -rw-r--r-- | app/Controllers/updateController.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Controllers/updateController.php b/app/Controllers/updateController.php index ec6778d51..4c1dd002c 100644 --- a/app/Controllers/updateController.php +++ b/app/Controllers/updateController.php @@ -56,9 +56,14 @@ class FreshRSS_update_Controller extends Minz_ActionController { curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 2); $result = curl_exec($c); $c_status = curl_getinfo($c, CURLINFO_HTTP_CODE); + $c_error = curl_error($c); curl_close($c); if ($c_status !== 200) { + Minz_Log::error( + 'Error during update (HTTP code ' . $c_status . '): ' . $c_error + ); + $this->view->message = array( 'status' => 'bad', 'title' => _t('damn'), |
