Skip to content

Commit

Permalink
Fixed bug that the error message is wrong when the logger group not f…
Browse files Browse the repository at this point in the history
…ound.
  • Loading branch information
assert6 authored May 9, 2023
1 parent 19b8da7 commit 24a3b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LoggerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function make($name = 'hyperf', $group = 'default'): LoggerInterface
{
$config = $this->config->get('logger');
if (! isset($config[$group])) {
throw new InvalidConfigException(sprintf('Logger config[%s] is not defined.', $name));
throw new InvalidConfigException(sprintf('Logger config[%s] is not defined.', $group));
}

$config = $config[$group];
Expand Down

0 comments on commit 24a3b87

Please sign in to comment.