Skip to content

Commit db947a1

Browse files
committed
fix(initPhpLogging): Moving fetch settings to before settings check.
There is the bug that you cannot disable PhpLogging since the settings property is not set until fetchSettings() is called. So I reordered.
1 parent c57e1f9 commit db947a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,13 @@ public static function buildIncludedErrno($cutoff)
265265

266266
public function initPhpLogging()
267267
{
268+
$this->fetchSettings();
269+
268270
// Return if logging is not enabled
269271
if ( $this->settings['php_logging_enabled'] === 0 ) {
270272
return;
271273
}
272274

273-
$this->fetchSettings();
274-
275275
// installs global error and exception handlers
276276
try {
277277

0 commit comments

Comments
 (0)