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 5afa0f1 commit bc50a9bCopy full SHA for bc50a9b
src/Illuminate/Log/LogManager.php
@@ -69,6 +69,8 @@ public function __construct($app)
69
*/
70
public function build(array $config)
71
{
72
+ unset($this->channels['ondemand']);
73
+
74
return $this->get('ondemand', $config);
75
}
76
@@ -127,10 +129,6 @@ public function getChannels()
127
129
protected function get($name, ?array $config = null)
128
130
131
try {
- if ($name === 'ondemand' && ! empty($config)) {
- 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