DEV Community

Discussion on: Use cases for persistent logs with NATS Streaming

Collapse
 
byronruth profile image
Byron Ruth • Edited

I guess I didn't realize this is a bit of a pain to do. Not terrible, but easy to miss. Basically only main should call Fatal or os.Exit and no defers should be used. More generally as long as no function in the stack above this call should use a deferred function.

Edit