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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user