From ee846af5dff082e1f818de22608638ce872ffc4c Mon Sep 17 00:00:00 2001 From: Etienne Trimaille Date: Mon, 27 May 2024 15:18:52 +0200 Subject: [PATCH] Release of 2.9.2 --- CHANGELOG.md | 5 +++++ lizmap_server/plausible.py | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37083b97..e511905e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lizmap_server/plausible.py b/lizmap_server/plausible.py index 7f7fc5e4..f8da3f49 100644 --- a/lizmap_server/plausible.py +++ b/lizmap_server/plausible.py @@ -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