Posted by david on 26 December 2015 at 12:38 pm
I pushed the error handler to Clay's repo yesterday. I left it part of the dashboard for now. The next dashboard will be a little more flexible, so I decided to keep it coupled for now. The error handler is pretty simple. It intercepts error messages and logs them. If a specific error occurs more than once, it increases a counter and keeps the time and date of the original error message. When an admin logs in, a notification shows up on the dashbaord. The admin can then view the errors, along with how many times it occurred and any kind of debugging data is available. The admin can clear a single error or clear the entire log. It doesn't catch exceptions, yet, but I plan to have them log as well. It's actually a nice feature, because the way the template engine works some errors were getting suppressed and only showed up in the server log or in HTML source. Now I don't have to check logs and get a lot more info for debugging. There are a few things I'd like to add, but I'm happy with it for now.
Log in to comment