Skip to content

Commit 2b67413

Browse files
authored
Merge pull request #7 from websupport-sk/level-fix
fix for allowed levels
2 parents 04843bf + 94befa1 commit 2b67413

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Client.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,13 @@ private function grabPushLogsFromLoggerToBreadcrumbs(): void
422422
$message = substr($message, 0, $pos);
423423
}
424424

425-
if ($level === 'trace') {
425+
if (!in_array($level, [
426+
Breadcrumb::LEVEL_DEBUG,
427+
Breadcrumb::LEVEL_INFO,
428+
Breadcrumb::LEVEL_WARNING,
429+
Breadcrumb::LEVEL_ERROR,
430+
Breadcrumb::LEVEL_FATAL,
431+
], true)) {
426432
$level = Breadcrumb::LEVEL_DEBUG;
427433
}
428434

0 commit comments

Comments
 (0)