A Very simple way to log all executed requests:
in cake \ libs \ model \ datasources \ dbo \ dbo_mysql.php
find the _execute function:
function _execute($sql) { return mysql_query($sql, $this->connection); }
add the line " $ this-> log ($ sql); " before " return mysql_query ($ sql, $ this-> connection); "
function _execute($sql) { $this->log($sql); return mysql_query($sql, $this->connection); }
What is it!!!!! All your SQL queries are logged. Verify that the log file is configured correctly and has sufficient permissions. Enjoy
source share