From bc066165cbb40bcb28bd966acc5dab97bce51b66 Mon Sep 17 00:00:00 2001 From: Thomas Sundvoll <35451859+tsundvoll@users.noreply.github.com> Date: Thu, 4 Jun 2026 11:53:31 +0200 Subject: [PATCH] feat: log details to message log to be used for example from the fmu-sumo-uplader to include a summary of the upload with the logs --- src/sumo/wrapper/_logging.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sumo/wrapper/_logging.py b/src/sumo/wrapper/_logging.py index 7363603..4f32e19 100644 --- a/src/sumo/wrapper/_logging.py +++ b/src/sumo/wrapper/_logging.py @@ -28,6 +28,9 @@ def emit(self, record): if "objectUuid" in record.__dict__: json["objectUuid"] = record.__dict__.get("objectUuid") + if "details" in record.__dict__: + json["details"] = record.__dict__.get("details") + self._sumoClient.post("/message-log/new", json=json) except Exception: # Never fail on logging