Skip to content

Commit

Permalink
Add objectUuid to logs that are sent to server so front-end can get a…
Browse files Browse the repository at this point in the history
…ll msgs related to a case
  • Loading branch information
roywilly committed Mar 20, 2024
1 parent 5f31598 commit 8f257b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sumo/wrapper/_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def emit(self, record):
"funcname": record.funcName,
"linenumber": record.lineno,
}
if "objectUuid" in record.__dict__.keys():
json["objectUuid"] = record.__dict__.get("objectUuid")

self._sumoClient.post("/message-log/new", json=json)
except Exception:
# Never fail on logging
Expand Down

0 comments on commit 8f257b0

Please sign in to comment.