Skip to content

Commit

Permalink
fix exception microservice name
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewPattell committed Jul 9, 2020
1 parent a341147 commit bdddd60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kakadu-dev/php-ijson-microservices",
"version": "1.1.3",
"version": "1.1.4",
"description": "Package for create microservice architecture based on PHP.",
"homepage": "https://github.com/kakadu-dev/php-ijson-microservices",
"type": "library",
Expand Down
2 changes: 2 additions & 0 deletions src/Microservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ protected function __construct(string $name, array $options = [], $logDriver = f
$this->name = $name;
$this->options = array_merge($this->options, array_filter($options));

MicroserviceException::$service = $name;

if ($logDriver instanceof ILogDriver) {
$this->logDriver = $logDriver;
} else {
Expand Down

0 comments on commit bdddd60

Please sign in to comment.