Skip to content

Commit 071af6c

Browse files
Remove old monolog 1.x compat code (#42392)
1 parent 42ff290 commit 071af6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Log/LogManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ protected function prepareHandler(HandlerInterface $handler, array $config = [])
420420
$handler = new FingersCrossedHandler($handler, $this->actionLevel($config));
421421
}
422422

423-
if (Monolog::API !== 1 && (Monolog::API !== 2 || ! $handler instanceof FormattableHandlerInterface)) {
423+
if (! $handler instanceof FormattableHandlerInterface) {
424424
return $handler;
425425
}
426426

0 commit comments

Comments
 (0)