Jump to content

Loggin all Db Queries


Recommended Posts

Hello everyone,

 

I am having some problems in my web. I think that an update query which I don't want to be executed is being executed and I can't find where.

 

With the porpuse of finding which is exactly the query, and when it is being executed, plus having more security on my web, I'd like to have a log with all the queries that are executed.

 

So I'd like to know how can I store every single query on a txt log . I guess there must be a place where all the sql queries go trough, but I can't find it anywhere.

 

Thank you :)

Link to comment
Share on other sites

what is your ps version?

 

generally if you can navigate to a page that you 'think' the statement is executing you can enable debug mode

 

config/defines.inc.php

 

define('_PS_DEBUG_PROFILING_', true);

 

then navigate to page to replicate and scroll down, there is a lot of information, make sure to turn off (false) when done.
 

Link to comment
Share on other sites

Hello,

thanks to both of you for your help, but as vekia said, I am interested on having a private log and I don't have a clue on which page is being executed that statement.

 

So what I am really, really interested in is if there is any point on the Db class where every query goes trough before being executed.

Link to comment
Share on other sites

×
×
  • Create New...