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

The application log will not show using docker logs, only supervisord logs are showing #70

Open
sdzhangtao opened this issue May 3, 2021 · 0 comments

Comments

@sdzhangtao
Copy link

When MISP is started, application logs by default are located at /var/www/MISP/app/tmp/logs, I have changed bootstrap.php to use Console log instead of file log. However it could be because of supervisord, the docker logs will only show supervisord logs.

Here is what's in your supervisord configuration.
command=/bin/bash -c "source /etc/apache2/envvars && exec /usr/sbin/apache2 -DFOREGROUND"

I know docker will only collect logs from current console. So I have added the following based on this document.
http://veithen.io/2015/01/08/supervisord-redirecting-stdout.html
But it's still not working.
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0

I think the reason might be because the command starts a new shell.

Could you find out why?

Thanks
Tao

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

1 participant