From 536e66da7c223f7b310a6962a15ad9ad77992abe Mon Sep 17 00:00:00 2001 From: "Florian Aders (EleRas)" Date: Thu, 23 Jun 2011 16:27:28 +0200 Subject: [PATCH] A nicer way to search the errormessage, this may (or may not) be helpful, refs #214 Signed-off-by: Florian Aders (EleRas) --- lib/classes/database/class.db.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/classes/database/class.db.php b/lib/classes/database/class.db.php index e51cf3cc..9ac485d3 100644 --- a/lib/classes/database/class.db.php +++ b/lib/classes/database/class.db.php @@ -355,10 +355,11 @@ class db { $text .= "; Script: cronscript"; } + $md5 = md5($text . time()); openlog("Froxlor", LOG_NDELAY, LOG_USER); - syslog(LOG_ERR, $text); + syslog(LOG_ERR, $text . "; $md5"); 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"); } }