Skip to content

Commit

Permalink
Merge pull request #11280 from benbuzbee/log-err
Browse files Browse the repository at this point in the history
Log error if there are no event handlers registered
  • Loading branch information
jrasell committed Oct 14, 2021
2 parents feb450a + 337c5d7 commit fa5addc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/11280.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
client/plugins/drivermanager: log if there is an error in a driver event
```
3 changes: 2 additions & 1 deletion client/pluginmanager/drivermanager/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

}

0 comments on commit fa5addc

Please sign in to comment.