diff --git a/CHANGELOG.md b/CHANGELOG.md index abfc5d5..5e09674 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 25.06.2023 2.1.0 + +- Erweiterung: + - Fehler in der cUrl-Kommunikation mit dem Tile-Server werden in das Logfile geschrieben. (#145) + ## 28.05.2023 2.0.1 - Bugfix: diff --git a/lib/yform/dataset/Layer.php b/lib/yform/dataset/Layer.php index 3f9804d..f8acc39 100644 --- a/lib/yform/dataset/Layer.php +++ b/lib/yform/dataset/Layer.php @@ -503,6 +503,8 @@ public static function sendTile(int $layerId): void // no reply at all, abort completely if ('0' === $returnCode) { + $msg = sprintf('Geolocation: Tile-Request failed (cUrl Error %d / %s)', curl_errno($ch), curl_error($ch)); + rex_logger::logError(E_WARNING, $msg, __FILE__, __LINE__ - 8, rex_context::fromGet()->getUrl([], false).' ➜ '.$url); Tools::sendInternalError(); } diff --git a/package.yml b/package.yml index 1a5e83f..53217f1 100644 --- a/package.yml +++ b/package.yml @@ -1,5 +1,5 @@ package: geolocation -version: '2.0.1' +version: '2.1.0' author: Friends Of REDAXO supportpage: https://github.com/FriendsOfREDAXO/geolocation