supertokens-core
supertokens-core copied to clipboard
(Intermediate) Docker image's error log not in stderr
The repo containing the Dockerfile
and the entrypoint
is here.
Could you please elaborate the issue. I'm willing to work on the Dockerfile
@AnmolVirdi , the core has two types of outputs:
- Debug / info logs
- 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
.
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:
It appears to work.
Okay thanks. We will recheck this
It seems that https://github.com/supertokens/supertokens-core/blob/master/src/main/java/io/supertokens/webserver/WebserverAPI.java#L161 and https://github.com/supertokens/supertokens-core/blob/master/src/main/java/io/supertokens/webserver/WebserverAPI.java#L179 don't print out on stderr which is perhaps the root of the issue here.
@rishabhpoddar, is the issue still relevant? Can I take it up?