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

(Intermediate) Docker image's error log not in stderr #5

Open
rishabhpoddar opened this issue Sep 11, 2020 · 6 comments
Open

(Intermediate) Docker image's error log not in stderr #5

rishabhpoddar opened this issue Sep 11, 2020 · 6 comments
Labels
bug Something isn't working good first issue Good for newcomers hacktoberfest For Hacktoberfest low priority Low priority issue

Comments

@rishabhpoddar
Copy link
Contributor

rishabhpoddar commented Sep 11, 2020

The repo containing the Dockerfile and the entrypoint is here.

@rishabhpoddar rishabhpoddar added bug Something isn't working low priority Low priority issue labels Sep 16, 2020
@rishabhpoddar rishabhpoddar added good first issue Good for newcomers hacktoberfest For Hacktoberfest labels Sep 28, 2020
@rishabhpoddar rishabhpoddar changed the title Docker image's error log not in stderr Docker image's error log not in stderr (Intermediate) Sep 29, 2020
@rishabhpoddar rishabhpoddar changed the title Docker image's error log not in stderr (Intermediate) (Intermediate) Docker image's error log not in stderr Sep 29, 2020
@AnmolVirdi
Copy link

Could you please elaborate the issue. I'm willing to work on the Dockerfile

@rishabhpoddar
Copy link
Contributor Author

@AnmolVirdi , the core has two types of outputs:

  1. Debug / info logs
  2. Error logs

Without docker, the output of (1) is sent to a file called info.log, and output of (2) is sent to error.log. In the code, the error logs are printed using System.err.println, here and the info logs are printed using System.out.println, here.

The problem comes in the docker container, where both these types of logs are being printer to the STDOUT instead of one being printed to STDOUT and one to STDERROR.

@yowayb
Copy link

yowayb commented Jan 18, 2022

Has anyone been able to reproduce this?

I forced an error by putting an exclamation mark before core_config_version in config.yaml and colored stderr red:

image.png

It appears to work.

@rishabhpoddar
Copy link
Contributor Author

Okay thanks. We will recheck this

@rishabhpoddar
Copy link
Contributor Author

rishabhpoddar commented Jan 18, 2022

@relentless-pursuit
Copy link

@rishabhpoddar, is the issue still relevant? Can I take it up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers hacktoberfest For Hacktoberfest low priority Low priority issue
Projects
None yet
Development

No branches or pull requests

5 participants