BackgroundDaemon: mention emitted component level

This commit is contained in:
Thomas Gelf 2019-09-29 08:53:35 +02:00
parent 79243f660a
commit cec4b7b57b
1 changed files with 2 additions and 1 deletions

View File

@ -143,7 +143,8 @@ class BackgroundDaemon
$dbResourceName = null
) {
$db = new DaemonDb($processDetails);
$db->on('state', function ($state) use ($processState) {
$db->on('state', function ($state, $level = null) use ($processState) {
// TODO: level is sent but not used
$processState->setComponentState('db', $state);
});