Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Output is buffered if evaluator is managed with systemd #48

Open
fonglh opened this issue Jul 5, 2016 · 2 comments
Open

Output is buffered if evaluator is managed with systemd #48

fonglh opened this issue Jul 5, 2016 · 2 comments

Comments

@fonglh
Copy link
Member

fonglh commented Jul 5, 2016

This makes it impossible to follow the logs and the timestamps are also affected.

Can be solved by placing STDOUT.sync = true at the top of the program.

@lowjoel
Copy link
Member

lowjoel commented Jul 6, 2016

Timestamps? Timestamps are set in Rails' logger, which is before buffering.

I think this should be an environment thing, it should not be enabled by default.

@fonglh
Copy link
Member Author

fonglh commented Jul 6, 2016

The output doesn't have timestamps at all, so the timestamps come from systemd's logging.
Buffering behaves differently when run directly from the command line vs being run as a service.

I agree it probably shouldn't be enforced here, so if there's any other way to turn off the buffering I'm willing to try it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants