How to Enable Detailed SQL Logging
Bamboo uses the open source persistence framework Hibernate. This page tells you how to configure Bamboo's logging to report individual SQL requests that are sent to the database by Hibernate. It is useful for troubleshooting the following events:
- Database Corruption
- Exceptions caused by an illegal database operation
- Any Database specific error(s)
It is advisable to enable detailed SQL logging before sending us log files so, after you have enabled enhanced logging, please replicate the action that was causing the error in the first place and then generate a Support Zip. This will assist us in determining what SQL queries were running during the reported problem.
Enabling detailed SQL logging greatly increases the amount of log output produced, potentially resulting in increased disk usage. Ensure you have sufficient disk space available and disable detailed SQL logging once you no longer need it.
Enabling SQL logging using
- Stop Bamboo.
log4j.properties, located in
Add the following lines to
- Start Bamboo
Enabling SQL logging in the Bamboo UI
- Access Administration > Overview > Log settings
Add the following log settings:
Disable Batched Updates
- Stop Bamboo
<bamboo-home>/bamboo.cfg.xmland add the following
<application-configuration> ... <properties> ... <property name="hibernate.jdbc.batch_size">0</property> ... </properties> </application-configuration>
- Start Bamboo.