From 58b2f4b217d780f3d96e68b11fbe11e6941a7515 Mon Sep 17 00:00:00 2001 From: "arnaud.morvan@camptocamp.com" Date: Fri, 20 Sep 2024 13:43:17 +0200 Subject: [PATCH] Change logs --- geoportal/c2cgeoportal_geoportal/views/theme.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/geoportal/c2cgeoportal_geoportal/views/theme.py b/geoportal/c2cgeoportal_geoportal/views/theme.py index 7934db3ed4..3730add5d4 100644 --- a/geoportal/c2cgeoportal_geoportal/views/theme.py +++ b/geoportal/c2cgeoportal_geoportal/views/theme.py @@ -81,9 +81,10 @@ def get_http_cached( @CACHE_OGC_SERVER_REGION.cache_on_arguments() # type: ignore def do_get_http_cached(url: str) -> Tuple[bytes, str]: + LOG.info("Getting URL '%s'", url) response = requests.get(url, headers=headers, timeout=TIMEOUT, **http_options) response.raise_for_status() - LOG.info("Get URL '%s' in %.1fs.", url, response.elapsed.total_seconds()) + LOG.info("Got URL '%s' in %.1fs.", url, response.elapsed.total_seconds()) return response.content, response.headers.get("Content-Type", "") if cache: @@ -184,7 +185,7 @@ def _get_metadata_list(self, item: main.TreeItem, errors: Set[str]) -> Dict[str, async def _wms_getcap( self, ogc_server: main.OGCServer, preload: bool = False, cache: bool = True ) -> Tuple[Optional[Dict[str, Dict[str, Any]]], Set[str]]: - LOG.debug("Get the WMS Capabilities of '%s', preload: %s, cache: %s", ogc_server.name, preload, cache) + # LOG.debug("Get the WMS Capabilities of '%s', preload: %s, cache: %s", ogc_server.name, preload, cache) @CACHE_OGC_SERVER_REGION.cache_on_arguments() # type: ignore def build_web_map_service(ogc_server_id: int) -> Tuple[Optional[Dict[str, Dict[str, Any]]], Set[str]]: @@ -272,7 +273,7 @@ async def _wms_getcap_cached( }, ) - LOG.debug("Get WMS GetCapabilities for URL: %s", url) + # LOG.debug("Get WMS GetCapabilities for URL: %s", url) headers = {}