logger.php: Don't output Panic messages unless debugging is on. Fixes #2460
parent
255806bd54
commit
c9d597dced
|
@ -477,7 +477,10 @@ function Panic( $string ) {
|
|||
}
|
||||
}
|
||||
Logger::fetch()->logPrint( Logger::PANIC, $string.$backtrace );
|
||||
die( $string );
|
||||
if (Logger::fetch()->debugOn()) {
|
||||
echo $string;
|
||||
}
|
||||
exit(1);
|
||||
}
|
||||
|
||||
function ErrorHandler( $error, $string, $file, $line ) {
|
||||
|
|
Loading…
Reference in New Issue