mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
MainLogger: log stack traces with CRITICAL level
maybe this will get people to send the whole thing instead of just the error message? ...
This commit is contained in:
parent
18fabf5466
commit
75e0844ff5
@ -201,12 +201,12 @@ class MainLogger extends \AttachableThreadedLogger{
|
||||
$this->synchronized(function() use ($e, $trace) : void{
|
||||
$this->critical(self::printExceptionMessage($e));
|
||||
foreach(Utils::printableTrace($trace) as $line){
|
||||
$this->debug($line, true);
|
||||
$this->critical($line);
|
||||
}
|
||||
for($prev = $e->getPrevious(); $prev !== null; $prev = $prev->getPrevious()){
|
||||
$this->debug("Previous: " . self::printExceptionMessage($prev), true);
|
||||
$this->critical("Previous: " . self::printExceptionMessage($prev));
|
||||
foreach(Utils::printableTrace($prev->getTrace()) as $line){
|
||||
$this->debug(" " . $line, true);
|
||||
$this->critical(" " . $line);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user