mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
EXCUSE ME, HOW DARE YOU NOT LOG NETWORK ERRORS?!
This commit is contained in:
@@ -2491,9 +2491,7 @@ class Server{
|
||||
$this->logger->debug("Unhandled raw packet from $address $port: " . bin2hex($payload));
|
||||
}
|
||||
}catch(\Throwable $e){
|
||||
if(\pocketmine\DEBUG > 1){
|
||||
$this->logger->logException($e);
|
||||
}
|
||||
$this->logger->logException($e);
|
||||
|
||||
$this->getNetwork()->blockAddress($address, 600);
|
||||
}
|
||||
|
@@ -94,9 +94,7 @@ class Network{
|
||||
$interface->process();
|
||||
}catch(\Throwable $e){
|
||||
$logger = $this->server->getLogger();
|
||||
if(\pocketmine\DEBUG > 1){
|
||||
$logger->logException($e);
|
||||
}
|
||||
$logger->logException($e);
|
||||
|
||||
(new NetworkInterfaceCrashEvent($interface, $e))->call();
|
||||
|
||||
|
Reference in New Issue
Block a user