A nicer way to search the errormessage, this may (or may not) be helpful, refs #214

Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org>
This commit is contained in:
Florian Aders (EleRas)
2011-06-23 16:27:28 +02:00
parent 9114a98e4c
commit 536e66da7c

View File

@@ -355,10 +355,11 @@ class db
{ {
$text .= "; Script: cronscript"; $text .= "; Script: cronscript";
} }
$md5 = md5($text . time());
openlog("Froxlor", LOG_NDELAY, LOG_USER); openlog("Froxlor", LOG_NDELAY, LOG_USER);
syslog(LOG_ERR, $text); syslog(LOG_ERR, $text . "; $md5");
closelog(); closelog();
die("A MySQL error occured, this should not happen, a detailled description may be found in syslog"); die("We are sorry, but a MySQL - error occurred. The administrator may find more information in syslog with the ID $md5");
} }
} }