To enable DBI backend logging: --log=gnc.backend.dbi=debug will show DBI backend routine entry/exit and will also log all SQL statements executed. --log=gnc.backend.sql=debug will show SQL backend routine entry/exit and other information. The SQL backend is a core library used by the DBI backend. Phil