Skip to content

Commit

Permalink
cUrl-Fehler ins Log schreiben (#145)
Browse files Browse the repository at this point in the history
* cUrl-Fehler ins Log schreiben

Zum besseren Nachvollziehen werden von cUrl gemeldete Fehler in´s Log geschrieben.

* Update CHANGELOG.md

* Update package.yml
  • Loading branch information
christophboecker authored Jun 25, 2023
1 parent a0a253a commit 603c2d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 2 additions & 0 deletions lib/yform/dataset/Layer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
2 changes: 1 addition & 1 deletion package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: geolocation
version: '2.0.1'
version: '2.1.0'
author: Friends Of REDAXO
supportpage: https://github.com/FriendsOfREDAXO/geolocation

Expand Down

0 comments on commit 603c2d8

Please sign in to comment.