-
Notifications
You must be signed in to change notification settings - Fork 4
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
XNAT application logs swallowed? #7
Comments
IIRC, that was meant to run over XNAT's logback.xml, forcing it to dump logs to stdout |
Ok, so to follow the pattern of not logging to file and logging everything to console, we might need to stop tomcat from logging to file and console?
(not a super high priority though I guess) |
Yeah. I might just nuke |
The current packer file has:
"sed -i 's/ch.qos.logback.core.rolling.RollingFileAppender/ch.qos.logback.core.ConsoleAppender/' $${CATALINA_HOME}/webapps/ROOT/WEB-INF/classes/logback.xml",
...which seems to swallow the underlying logs that would otherwise get written as when I run
docker logs <CONTAINER>
all I can see are the Tomcat logs, not the XNAT ones. Removing this line puts the logs in the logs directory in the XNAT home directory, which I think is a bit nicer (but i'm only running this as a docker image, not in k8s, so there might be something I'm missing here).Happy to send a PR if you agree.
The text was updated successfully, but these errors were encountered: