Skip to content

Commit

Permalink
Merge pull request websupport-sk#7 from websupport-sk/level-fix
Browse files Browse the repository at this point in the history
fix for allowed levels
  • Loading branch information
miso93 authored Aug 26, 2021
2 parents 04843bf + 94befa1 commit 2b67413
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,13 @@ private function grabPushLogsFromLoggerToBreadcrumbs(): void
$message = substr($message, 0, $pos);
}

if ($level === 'trace') {
if (!in_array($level, [
Breadcrumb::LEVEL_DEBUG,
Breadcrumb::LEVEL_INFO,
Breadcrumb::LEVEL_WARNING,
Breadcrumb::LEVEL_ERROR,
Breadcrumb::LEVEL_FATAL,
], true)) {
$level = Breadcrumb::LEVEL_DEBUG;
}

Expand Down

0 comments on commit 2b67413

Please sign in to comment.