I am testing Openspecimen on a development server. It is generating 4GB of log files and causes the server to crash. I can restart OS by clearing the logs, but is there a way to stop OS from creating logs?
Hi @shlfung,
If you have installed the OpenSpecimen using an installer with property ‘environment’ as ‘Development’, then it will also log hibernate query logs into the log file. You can turn off the hibernate query logs by setting ‘hibernate.show_sql=false’ in <install_home>/tomcat-as/webapps/openspecimen/WEB-INF/classes/application.properties file.
You’ll need to restart the tomcat server to take above change in effect.
Also, if you are using OpenSpecimen v3.3 or greater version, then you can also minimize logs by setting logging level to ‘ERROR’ (default is ‘INFO’) in <install_home>/tomcat-as/webapps/openspecimen/WEB-INF/classes/default-log4j.properties file.
Thanks
Satish Lakhani
Thank you @Satish_Lakhani
I am assuming I don’t have to rebuild the application after changing the setting?