Skip to content

Commit

Permalink
bugfix: fix repeat push handler
Browse files Browse the repository at this point in the history
  • Loading branch information
G-YDG committed Mar 22, 2023
1 parent fbcc213 commit 6aa428e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AliyunLogHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public function getLogger(array $config): Logger
{
if (!$this->logger instanceof Logger) {
$this->logger = new Logger($config['name']);
$this->logger->pushHandler(AliyunLogHelper::getLogHandler(AliyunLogHelper::getLogClient($config), $config));
}
$this->logger->pushHandler(AliyunLogHelper::getLogHandler(AliyunLogHelper::getLogClient($config), $config));

return $this->logger;
}
Expand Down

0 comments on commit 6aa428e

Please sign in to comment.