Skip to content

Commit 7582a2a

Browse files
Merge pull request #84 from spenserhale/master
fix(initPhpLogging): Moving fetch settings to before settings check.
2 parents c57e1f9 + db947a1 commit 7582a2a

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)