From 5cf262e1b1db8235da5fc4d8b7bdc0dc4a45d616 Mon Sep 17 00:00:00 2001 From: Hans Kallekleiv <16436291+HansKallekleiv@users.noreply.github.com> Date: Sat, 18 Nov 2023 14:32:27 +0100 Subject: [PATCH] Explore extras --- .../services/sumo_access/surface_access.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/backend/src/services/sumo_access/surface_access.py b/backend/src/services/sumo_access/surface_access.py index e2d1138cc..d64d47362 100644 --- a/backend/src/services/sumo_access/surface_access.py +++ b/backend/src/services/sumo_access/surface_access.py @@ -131,13 +131,18 @@ async def get_realization_surface_data_async( et_xtgeo_read_ms = timer.lap_ms() size_mb = byte_stream.getbuffer().nbytes / (1024 * 1024) - LOGGER.debug( - f"Got realization surface from Sumo in: {timer.elapsed_ms()}ms (" - f"locate={et_locate_ms}ms, " - f"download={et_download_ms}ms, " - f"xtgeo_read={et_xtgeo_read_ms}ms) " - f"[{xtgeo_surf.ncol}x{xtgeo_surf.nrow}, {size_mb:.2f}MB] " - f"({addr_str})" + + LOGGER.info( + f"Got realization surface from Sumo", + extra={ + "service": "sumo", + "operation": "get_realization_surface_data", + "elapsed_ms_total": timer.elapsed_ms(), + "elapsed_ms_locate": et_locate_ms, + "elapsed_ms_download": et_download_ms, + "elapsed_ms_xtgeo_read": et_xtgeo_read_ms, + "size_mb": size_mb, + }, ) return xtgeo_surf