Skip to content

Commit

Permalink
Merge pull request #32 from Kanti/fix-not-configured-pluswerk-sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanti authored Aug 22, 2023
2 parents f3fe2aa + 99f76ab commit 42d9cc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Service/SentryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ private function getSentryClient(?ServerRequestInterface $serverRequest = null):
$client = PluswerkSentry::getInstance()->getClient();
}

if (!$client) {
return null;
}

$options = $client->getOptions();

$forceTrace = $this->isTraceForced($serverRequest);
Expand Down

0 comments on commit 42d9cc0

Please sign in to comment.