chilliboy
Thu 2nd Aug '01, 5:43am
When you are having problems with mySQL it would be useful to just recieve 1 e-mail for each Unique Error. If you've got a busy forums and it goes down its a complete pain getting swamped by hundreds of the same error e-mails. Sending e-mails to an internet account to stop being swamped is not really an option as you don't get to find out about errors unless you regularly check the account.
Maybe you could use flat files for this (as if mySQL is down its pointless to consider mySQL) - the error message is checked for similarities against an error cache file along with file 'modified' time - if the error is similar is the same as one generated in the last hour a message is not sent - else one is sent. You could also write a simple counter which could advise "this error was generated xx times from time 1 to time 2".
I believe this would be possible to script (and probably not to difficult) - and I use flat files in a similar way to this for my own error reporting.
If something like this could be implemented I think it would be thoroughly welcome.
Maybe you could use flat files for this (as if mySQL is down its pointless to consider mySQL) - the error message is checked for similarities against an error cache file along with file 'modified' time - if the error is similar is the same as one generated in the last hour a message is not sent - else one is sent. You could also write a simple counter which could advise "this error was generated xx times from time 1 to time 2".
I believe this would be possible to script (and probably not to difficult) - and I use flat files in a similar way to this for my own error reporting.
If something like this could be implemented I think it would be thoroughly welcome.