Merge pull request #11280 from benbuzbee/log-err

Log error if there are no event handlers registered
This commit is contained in:
James Rasell 2021-10-14 14:49:22 +02:00 committed by GitHub
commit 444d25db07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

3
.changelog/11280.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:improvement
client/plugins/drivermanager: log if there is an error in a driver event
```

View File

@ -481,5 +481,6 @@ func (i *instanceManager) handleEvent(ev *drivers.TaskEvent) {
return
}
i.logger.Warn("no handler registered for event", "event", ev)
i.logger.Warn("no handler registered for event", "event", ev, "error", ev.Err)
}