Move Query exceptions to debug level > 1

This commit is contained in:
Shoghi Cervantes 2014-12-26 13:47:15 +01:00
parent 902ba81e02
commit 854479180f
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -633,8 +633,10 @@ class Server{
$this->queryHandler->handle($address, $port, $payload);
}
}catch(\Exception $e){
if($this->logger instanceof MainLogger){
$this->logger->logException($e);
if(\pocketmine\DEBUG > 1){
if($this->logger instanceof MainLogger){
$this->logger->logException($e);
}
}
$this->mainInterface->blockAddress($address, 600);