-
-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken pipe when using | tee #31
Comments
I don't think log4rs is doing anything particularly interesting here. I'm guessing that SIGINTing the process group will sometimes kill the tee first so stdout breaks. The error logging goes to stderr which presumably wasn't redirected. I've been meaning to make the error logging configurable but haven't gotten around to it. |
Are there any actions to take here? |
Hey sorry for not getting back to you. I guess if this is how things usually work, then there's no action needed. My application actually does a graceful shutdown on SIGINT so it's probably trying to log after the pipe is closed. |
No problem! I filed #32 to track the meta-logger stuff. |
I've been running a process into a
| tee logfile
; sendingSIGINT
will close everything down, but log4rs prints a bunch of this to stdout at that point:This is on macOS and a few months old version of log4rs; haven't tested a newer version or different OS.
The text was updated successfully, but these errors were encountered: