Skip to content

Catch exceptions in logging handler thread

If writeLog() fails, then print a message to stderr and keep going. This is one rare circumstance where we must catch all exceptions. If the logging thread crashes, then it will stop clearing out the queue. Safe and rapid termination of the thread requires that we ignore exceptions and continue consuming items from the queue.

This patch clears up an issue in bayestar_localize_lvalert where the terminal becomes unresponsive if the user enters a GraceDB ID that does not exist.

Merge request reports