Skip to content

Commit

Permalink
fix(contrib-auto-laravel): fix log level is string but underlying log…
Browse files Browse the repository at this point in the history
…ger expects int leading to incorrect types
  • Loading branch information
flc1125 committed Oct 16, 2024
1 parent 67ce817 commit c28ea77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Instrumentation/Laravel/src/Watchers/LogWatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ public function recordLog(MessageLogged $log): void
$underlyingLogger = $this->logger->getLogger();

/** @phan-suppress-next-line PhanUndeclaredMethod */
if (method_exists($underlyingLogger, 'isHandling') && !$underlyingLogger->isHandling($log->level)) {
if (method_exists($underlyingLogger, 'isHandling') && !$underlyingLogger->isHandling(
$underlyingLogger->toMonologLevel($log->level))
) {
return;
}

Expand Down

0 comments on commit c28ea77

Please sign in to comment.