Skip to content

Commit c28ea77

Browse files
committed
fix(contrib-auto-laravel): fix log level is string but underlying logger expects int leading to incorrect types
1 parent 67ce817 commit c28ea77

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Instrumentation/Laravel/src/Watchers/LogWatcher.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ public function recordLog(MessageLogged $log): void
3737
$underlyingLogger = $this->logger->getLogger();
3838

3939
/** @phan-suppress-next-line PhanUndeclaredMethod */
40-
if (method_exists($underlyingLogger, 'isHandling') && !$underlyingLogger->isHandling($log->level)) {
40+
if (method_exists($underlyingLogger, 'isHandling') && !$underlyingLogger->isHandling(
41+
$underlyingLogger->toMonologLevel($log->level))
42+
) {
4143
return;
4244
}
4345

0 commit comments

Comments
 (0)