Skip to content

Commit e7557eb

Browse files
authored
change service states logging level to notice (#52)
1 parent d3b5778 commit e7557eb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/SAREhub/Commons/Service/ServiceSupport.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ abstract class ServiceSupport implements Service
1919
public function start()
2020
{
2121
if (!$this->isStarted()) {
22-
$this->getLogger()->info('service starting ...');
22+
$this->getLogger()->notice('service starting ...');
2323
$this->doStart();
2424
$this->started = true;
2525
$this->stopped = false;
26-
$this->getLogger()->info('service started');
26+
$this->getLogger()->notice('service started');
2727
}
2828
}
2929

@@ -37,7 +37,7 @@ public function tick()
3737
try {
3838
$this->stop();
3939
} catch (\Exception $e2) {
40-
// we wants only orginal exception
40+
// we wants only original exception
4141
}
4242

4343
throw $e;
@@ -48,12 +48,12 @@ public function stop()
4848
{
4949
if ($this->isStarted()) {
5050
try {
51-
$this->getLogger()->info('service stopping ...');
51+
$this->getLogger()->notice('service stopping ...');
5252
$this->doStop();
5353
} finally {
5454
$this->started = false;
5555
$this->stopped = true;
56-
$this->getLogger()->info('service stopped');
56+
$this->getLogger()->notice('service stopped');
5757
}
5858
}
5959
}
@@ -114,4 +114,4 @@ protected function doStop()
114114
{
115115

116116
}
117-
}
117+
}

0 commit comments

Comments
 (0)