X-Git-Url: https://git.cweiske.de/stapibas.git/blobdiff_plain/06417453929374a070c8e3f12787d6549754ff58..89d92d397268eb638352629310b09d4f20df592a:/src/stapibas/Feed/PingUrls.php diff --git a/src/stapibas/Feed/PingUrls.php b/src/stapibas/Feed/PingUrls.php index 1e98f0a..69045b5 100644 --- a/src/stapibas/Feed/PingUrls.php +++ b/src/stapibas/Feed/PingUrls.php @@ -61,7 +61,8 @@ class Feed_PingUrls $this->log->info('Pinging %d URLs..', count($options)); $res = $this->db->query( - 'SELECT fe_url, feu_id, feu_url FROM feedentries, feedentryurls' + 'SELECT fe_url, feu_id, feu_url, feu_tries' + . ' FROM feedentries, feedentryurls' . ' WHERE fe_id = feu_fe_id' . $this->sqlNeedsUpdate() . ' AND (' . implode(' OR ', $options) . ')' @@ -116,14 +117,17 @@ class Feed_PingUrls ); } else { //error - $this->log->err('Error: ' . $res->getCode() . ': ' . $res->getMessage()); + $code = $res->getCode(); + $this->log->err('Error: ' . $code . ': ' . $res->getMessage()); $httpRes = $res->getResponse(); if ($httpRes) { $this->log->info( 'Pingback response: Status code ' . $httpRes->getStatus() . ', headers: ' . print_r($httpRes->getHeader(), true) ); - //. ', body: ' .$httpRes->getBody() + if ($code == 100 || $code == 101 || $code == -32600) { + $this->log->info('HTTP body: ' . $httpRes->getBody()); + } } $this->db->exec( 'UPDATE feedentryurls SET'