Origen-SDK / origen

The Origen Semiconductor Developer's Kit core platform
http://origen-sdk.org
MIT License
20 stars 24 forks source link

Catch flush issues when a logger is closed #450

Closed coreyeng closed 12 months ago

coreyeng commented 12 months ago

If using multiple shells in the same workspace, there's chance logger files will step on each other, particularly last, and particularly noticeable with simulations. This will generate an exception, but doesn't affect a single pattern. However, this will kill a flow simulation prematurely if it occurs.

This is a quick fix to just catch any errors flushing to a log file and print them to the user, without propagating the exception.

For example, instead of seeing this:

image

You'll see:

image

Note the warnings here - just saying stale log file, which is expected, but now results in the warning instead of an exception.

coreyeng commented 12 months ago

Released 0.60.12 with this merged.