Skip to content

Commit aa12773

Browse files
committed
Log more exceptions
1 parent aac1951 commit aa12773

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

simvue/run.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@ def log_event(self, message, timestamp=None):
444444

445445
try:
446446
self._events_queue.put(data, block=self._queue_blocking)
447-
except:
448-
pass
447+
except Exception as err:
448+
logger.error(str(err))
449449

450450
return True
451451

@@ -495,8 +495,8 @@ def log_metrics(self, metrics, step=None, time=None, timestamp=None):
495495

496496
try:
497497
self._metrics_queue.put(data, block=self._queue_blocking)
498-
except:
499-
pass
498+
except Exception as err:
499+
logger.error(str(err))
500500

501501
return True
502502

0 commit comments

Comments
 (0)