Make MainLogger independent of runtime-defined INI entries

Previously every thread using the logger had to inherit runtime-defined INI entries in order for the timezone to be set correctly. This removes that requirement.
This commit is contained in:
Dylan K. Taylor
2018-09-04 15:57:45 +01:00
parent 32077d96b4
commit 557fd34754
3 changed files with 15 additions and 6 deletions

View File

@ -92,7 +92,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
}
public function start(){
$this->rakLib->start(PTHREADS_INHERIT_CONSTANTS | PTHREADS_INHERIT_INI); //HACK: MainLogger needs INI and constants
$this->rakLib->start(PTHREADS_INHERIT_CONSTANTS); //HACK: MainLogger needs constants for exception logging
}
public function setNetwork(Network $network){