Skip to content
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

Change tartLogRoutine to simply flush all output (no buffering) #2

Closed
liamzebedee opened this issue Nov 7, 2016 · 3 comments
Closed

Comments

@liamzebedee
Copy link

I can't tell if my deployment is working or not (I've just got a simple echo command) - this is probably due to the fact it reads in buffers of 4096 bytes -- it's possible in Go to actually not even use a Buffer at all, and simply "pipe" the Stdin to a struct that implements Write, which would simply write to the appropriate place.

Can link sample code

@liamzebedee
Copy link
Author

@liamzebedee
Copy link
Author

Perhaps it'd be better to log stdout by default, rather than running --log-stdout yes

@twitchyliquid64
Copy link
Owner

There is no buffering of the stdout logging, you just need to turn it on as you have discovered.

I agree that the default should be true for logging stdout - in retrospect I don't have any tarts where logging is not enabled.

Expect a commit this evening.

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

No branches or pull requests

2 participants