use logger methods instead of own prefixing

This commit is contained in:
Steffen Schröder 2014-08-05 02:07:53 +02:00
parent 5eda73ba09
commit c0c78724d3

View File

@ -92,9 +92,10 @@ class SystemUtil {
public static function quit($message = null, $errorPrefix = false) { public static function quit($message = null, $errorPrefix = false) {
if ($message) { if ($message) {
if ($errorPrefix) { if ($errorPrefix) {
$message = '[ERROR] ' . $message; Logger::logError($message);
} else{
Logger::log($message);
} }
Logger::log($message);
} }
exit; exit;
} }