Skip to content

Commit

Permalink
Release of 2.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed May 27, 2024
1 parent 0347665 commit ee846af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

## 2.9.2 - 2024-05-27

* Review the `GetLegendGraphic` request about invalid layer, not only for vector
* Improve logging about invalid layer

## 2.9.1 - 2024-05-13

* Review the `GetLegendGraphic` request
Expand Down
9 changes: 5 additions & 4 deletions lizmap_server/plausible.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@ def _send_stat_event() -> bool:
return True

logger = Logger()
message = f"Request sent to '{plausible_url}' with domain '{plausible_domain} : "
if r.error() != QNetworkReply.NoError:
logger.warning(message + r.error())
else:
message = (
f"Request HTTP OS process '{os.getpid()}' sent to '{plausible_url}' with domain '{plausible_domain} : ")
if r.error() == QNetworkReply.NoError:
logger.info(message + "OK")
else:
logger.warning(message + r.error())

return True

0 comments on commit ee846af

Please sign in to comment.