Skip to content

Commit

Permalink
Merge pull request #84 from spenserhale/master
Browse files Browse the repository at this point in the history
fix(initPhpLogging): Moving fetch settings to before settings check.
  • Loading branch information
ArturMoczulski authored May 24, 2019
2 parents c57e1f9 + db947a1 commit 7582a2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit 7582a2a

Please sign in to comment.