mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
Log exception with backtrace
This commit is contained in:
parent
958473b333
commit
a0111d04ee
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user