From c0c78724d38cee3f812244ab5416b1858613d9e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Tue, 5 Aug 2014 02:07:53 +0200 Subject: [PATCH] use logger methods instead of own prefixing --- application/core/Utils/SystemUtil.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/core/Utils/SystemUtil.php b/application/core/Utils/SystemUtil.php index 3b14b7f8..28046f35 100644 --- a/application/core/Utils/SystemUtil.php +++ b/application/core/Utils/SystemUtil.php @@ -92,9 +92,10 @@ class SystemUtil { public static function quit($message = null, $errorPrefix = false) { if ($message) { if ($errorPrefix) { - $message = '[ERROR] ' . $message; + Logger::logError($message); + } else{ + Logger::log($message); } - Logger::log($message); } exit; }