Skip to content

Commit

Permalink
修复日志功能在配置了 channels 后设置不生效的问题 (#2579)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrybendy authored Aug 25, 2022
1 parent 52af4cb commit 0d66246
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Kernel/Providers/LogServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ public function register(Container $pimple)
public function formatLogConfig($app)
{
if (!empty($app['config']->get('log.channels'))) {
return $app['config']->get('log');
return [
'log' => $app['config']->get('log'),
];
}

if (empty($app['config']->get('log'))) {
Expand Down

0 comments on commit 0d66246

Please sign in to comment.