diff --git a/src/SAREhub/Commons/Service/ServiceSupport.php b/src/SAREhub/Commons/Service/ServiceSupport.php index 27814f5..a4841c1 100644 --- a/src/SAREhub/Commons/Service/ServiceSupport.php +++ b/src/SAREhub/Commons/Service/ServiceSupport.php @@ -19,11 +19,11 @@ abstract class ServiceSupport implements Service public function start() { if (!$this->isStarted()) { - $this->getLogger()->info('service starting ...'); + $this->getLogger()->notice('service starting ...'); $this->doStart(); $this->started = true; $this->stopped = false; - $this->getLogger()->info('service started'); + $this->getLogger()->notice('service started'); } } @@ -37,7 +37,7 @@ public function tick() try { $this->stop(); } catch (\Exception $e2) { - // we wants only orginal exception + // we wants only original exception } throw $e; @@ -48,12 +48,12 @@ public function stop() { if ($this->isStarted()) { try { - $this->getLogger()->info('service stopping ...'); + $this->getLogger()->notice('service stopping ...'); $this->doStop(); } finally { $this->started = false; $this->stopped = true; - $this->getLogger()->info('service stopped'); + $this->getLogger()->notice('service stopped'); } } } @@ -114,4 +114,4 @@ protected function doStop() { } -} \ No newline at end of file +}