diff --git a/composer.json b/composer.json index 1c9eba1..b228feb 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/Microservice.php b/src/Microservice.php index 81d5d1d..6ec02c2 100644 --- a/src/Microservice.php +++ b/src/Microservice.php @@ -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 {