diff --git a/src/LoggerFactory.php b/src/LoggerFactory.php index 852f9e8..6fa77dd 100644 --- a/src/LoggerFactory.php +++ b/src/LoggerFactory.php @@ -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];