Skip to content

Commit

Permalink
Merge branch 'master' into feature/ReleaseStages
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSneeuw committed Nov 9, 2023
2 parents 72468ba + 8c35216 commit 0ddb05f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Bugsnag.php
Expand Up @@ -18,9 +18,11 @@ class Bugsnag

public function __construct()
{
$this->bugsnag = Client::make(Environment::getEnv('BUGSNAG_API_KEY'));
$this->bugsnag->setAppType('Silverstripe');
$this->bugsnag->setReleaseStage(Environment::getEnv('BUGSNAG_RELEASE_STAGE') ?? 'development');
if (Environment::getEnv('BUGSNAG_ACTIVE') === "true") {
$this->bugsnag = Client::make(Environment::getEnv('BUGSNAG_API_KEY'));
$this->bugsnag->setAppType('Silverstripe');
$this->bugsnag->setReleaseStage(Environment::getEnv('BUGSNAG_RELEASE_STAGE') ?? 'development');
}
}

/**
Expand Down

0 comments on commit 0ddb05f

Please sign in to comment.