Merge pull request #7499 from LK4D4/fix_events_error
Fix error message on logging events Upstream-commit: e94d77291063b13066af079ff0036eabb80d379b Component: engine
This commit is contained in:
@@ -171,7 +171,7 @@ func (container *Container) WriteHostConfig() error {
|
||||
func (container *Container) LogEvent(action string) {
|
||||
d := container.daemon
|
||||
if err := d.eng.Job("log", action, container.ID, d.Repositories().ImageName(container.Image)).Run(); err != nil {
|
||||
utils.Errorf("Error running container: %s", err)
|
||||
utils.Errorf("Error logging event %s for %s: %s", action, container.ID, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user