mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 01:39:52 +00:00
Removed options for disabling assertion exceptions
This commit is contained in:
parent
b9ad0b99a5
commit
162a08b8cb
@ -1506,7 +1506,7 @@ class Server{
|
|||||||
$this->logger->warning("Debugging assertions are enabled, this may impact on performance. To disable them, set `zend.assertions = -1` in php.ini.");
|
$this->logger->warning("Debugging assertions are enabled, this may impact on performance. To disable them, set `zend.assertions = -1` in php.ini.");
|
||||||
}
|
}
|
||||||
|
|
||||||
ini_set('assert.exception', (bool) $this->getProperty("debug.assertions.throw-exception", 0));
|
ini_set('assert.exception', '1');
|
||||||
|
|
||||||
if($this->logger instanceof MainLogger){
|
if($this->logger instanceof MainLogger){
|
||||||
$this->logger->setLogDebug(\pocketmine\DEBUG > 1);
|
$this->logger->setLogDebug(\pocketmine\DEBUG > 1);
|
||||||
|
@ -88,9 +88,6 @@ debug:
|
|||||||
assertions:
|
assertions:
|
||||||
#Warn if assertions are enabled in php.ini, due to assertions may impact on runtime performance if enabled.
|
#Warn if assertions are enabled in php.ini, due to assertions may impact on runtime performance if enabled.
|
||||||
warn-if-enabled: true
|
warn-if-enabled: true
|
||||||
#Enable throwing exceptions when assertions fail, will allow obtaining more detailed information on the failed assertion, but may cause a server crash.
|
|
||||||
#If set to false, a warning will be raised instead of throwing an exception.
|
|
||||||
throw-exception: false
|
|
||||||
#If > 1, it will show debug messages in the console
|
#If > 1, it will show debug messages in the console
|
||||||
level: 1
|
level: 1
|
||||||
#Enables /status, /gc
|
#Enables /status, /gc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user