These instructions increase Confluence's logging to report individual requests being sent to the database by Hibernate. It is useful for troubleshooting:
- XML site backups that fail to import
- Exceptions caused by an illegal database operation
To do this in Confluence, you need to modify log4j.properties, located in confluence/WEB-INF/classes.
 |
If you require support assistance with a database related problem, it is advisable to enable hibernate logging prior sending us the log files. It will assists us determining what SQL queries were running during the reported problem. |
To log SQL queries
Stop Confluence, then uncomment the following lines in log4j.properties:
To log SQL queries with parameters
Stop Confluence, then uncomment the following lines in log4j.properties:
To disable batched updates (for simpler debugging)
Stop Confluence, then edit confluence/WEB-INF/classes/databaseSubsystemContext.xml and uncomment the following <prop> line:
Related Topic
Troubleshooting SQL exceptions