Skip to content

Commit 5afa0f1

Browse files
committed
dont cache ondemand loggers
1 parent f429789 commit 5afa0f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Log/LogManager.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ public function getChannels()
127127
protected function get($name, ?array $config = null)
128128
{
129129
try {
130+
if ($name === 'ondemand' && ! empty($config)) {
131+
unset($this->channels['ondemand']);
132+
}
133+
130134
return $this->channels[$name] ?? with($this->resolve($name, $config), function ($logger) use ($name) {
131135
return $this->channels[$name] = $this->tap($name, new Logger($logger, $this->app['events']));
132136
});

0 commit comments

Comments
 (0)