Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL Errors tracking in Logs #553

Closed
mushketer888 opened this issue Mar 17, 2013 · 1 comment
Closed

SQL Errors tracking in Logs #553

mushketer888 opened this issue Mar 17, 2013 · 1 comment

Comments

@mushketer888
Copy link

It would be nice feauture.
To track sql errors in log.
For example i wanted to try opencart and have error:
Notice: Error: Unknown column 'p.rating' in 'field list'
Error No: 1054

I could not see this error or it is hard to catch/debug.
To make this feauture it is enough to add code to: system/library/db.php
public function query($sql) {
//here
return $this->db->query($sql);
}

@ghost
Copy link

ghost commented Mar 17, 2013

They already appear in the error log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant