diff --git a/src/Plugin.php b/src/Plugin.php index 85e6f0f6..3bf54aa1 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -265,13 +265,13 @@ public static function buildIncludedErrno($cutoff) public function initPhpLogging() { + $this->fetchSettings(); + // Return if logging is not enabled if ( $this->settings['php_logging_enabled'] === 0 ) { return; } - $this->fetchSettings(); - // installs global error and exception handlers try {