jetzig-framework / jetzig

Jetzig is a web framework written in Zig
MIT License
579 stars 25 forks source link

Running in non-interactive Docker breaks logger #104

Open bobf opened 1 month ago

bobf commented 1 month ago

Running in non-interactive Docker (i.e. without -it) causes logger to fail when attempting to sync output.

Check to see if log file is a real file on disk before trying to call sync, instead of relying on isTty() being false to decide whether to sync.

bobf commented 1 month ago

@mdiluz FYI ^