Skip to content

Commit bc06616

Browse files
committed
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
1 parent 6b39d36 commit bc06616

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/sumo/wrapper/_logging.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ def emit(self, record):
2828
if "objectUuid" in record.__dict__:
2929
json["objectUuid"] = record.__dict__.get("objectUuid")
3030

31+
if "details" in record.__dict__:
32+
json["details"] = record.__dict__.get("details")
33+
3134
self._sumoClient.post("/message-log/new", json=json)
3235
except Exception:
3336
# Never fail on logging

0 commit comments

Comments
 (0)