Skip to content

Commit 827bcb0

Browse files
authored
Never fail on logging (#147)
* Never fail on logging
1 parent 4580486 commit 827bcb0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/sumo/wrapper/_logging.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ def emit(self, record):
1919
"funcname": record.funcName,
2020
"linenumber": record.lineno,
2121
}
22-
self._sumoClient.post("/message-log/new", json=json)
22+
try:
23+
self._sumoClient.post("/message-log/new", json=json)
24+
except Exception:
25+
# Never fail on logging
26+
pass
27+
2328
return
2429

2530
pass

0 commit comments

Comments
 (0)