mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 09:26:06 +00:00
Log exception with backtrace
This commit is contained in:
@ -1931,8 +1931,8 @@ class Server{
|
|||||||
|
|
||||||
gc_collect_cycles();
|
gc_collect_cycles();
|
||||||
}catch(\Throwable $e){
|
}catch(\Throwable $e){
|
||||||
|
$this->logger->logException($e);
|
||||||
$this->logger->emergency("Crashed while crashing, killing process");
|
$this->logger->emergency("Crashed while crashing, killing process");
|
||||||
$this->logger->emergency(get_class($e) . ": " . $e->getMessage());
|
|
||||||
@kill(getmypid());
|
@kill(getmypid());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user