We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f429789 commit 5afa0f1Copy full SHA for 5afa0f1
src/Illuminate/Log/LogManager.php
@@ -127,6 +127,10 @@ public function getChannels()
127
protected function get($name, ?array $config = null)
128
{
129
try {
130
+ if ($name === 'ondemand' && ! empty($config)) {
131
+ unset($this->channels['ondemand']);
132
+ }
133
+
134
return $this->channels[$name] ?? with($this->resolve($name, $config), function ($logger) use ($name) {
135
return $this->channels[$name] = $this->tap($name, new Logger($logger, $this->app['events']));
136
});
0 commit comments