use logger methods instead of own prefixing
This commit is contained in:
parent
5eda73ba09
commit
c0c78724d3
@ -92,10 +92,11 @@ class SystemUtil {
|
||||
public static function quit($message = null, $errorPrefix = false) {
|
||||
if ($message) {
|
||||
if ($errorPrefix) {
|
||||
$message = '[ERROR] ' . $message;
|
||||
}
|
||||
Logger::logError($message);
|
||||
} else{
|
||||
Logger::log($message);
|
||||
}
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user