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

No output to stdout when no TTY attached in Docker container #79

Closed
hauleth opened this issue Nov 10, 2017 · 2 comments
Closed

No output to stdout when no TTY attached in Docker container #79

hauleth opened this issue Nov 10, 2017 · 2 comments

Comments

@hauleth
Copy link

hauleth commented Nov 10, 2017

You can see this on Asciinema

This is my code that causes the issue.

I would expect to be some output (no need for colouring of course).

I will try to produce minimal example when I will have some time.

@dpc
Copy link

dpc commented Nov 10, 2017

@hauleth I'm sorry. I think I made a mistake. I've looked more into it, and I believe the reason is, that you don't have TERM environment variable defined in your container, or there's something wrong with your term database, and https://github.com/slog-rs/term/blob/master/src/lib.rs#L1193 returns None which leads no logging at all.

@hauleth
Copy link
Author

hauleth commented Nov 10, 2017

@dpc yeah, I have found this also. Should I open issue in slog-rs/slog for that? I think that this is soudness problem.

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