chore: remove use of "err" a log line context key for errors. (#14433)

Log lines which include an error should use the full term "error"
as the context key. This provides consistency across the codebase
and avoids a Go style which operators might not be aware of.
This commit is contained in:
James Rasell
2022-09-01 15:06:10 +02:00
committed by GitHub
parent 1a59a0f5fc
commit 25e7c2ffa4
14 changed files with 24 additions and 23 deletions

View File

@@ -636,7 +636,7 @@ func (d *Driver) DestroyTask(taskID string, force bool) error {
if !handle.pluginClient.Exited() {
if err := handle.exec.Shutdown("", 0); err != nil {
handle.logger.Error("destroying executor failed", "err", err)
handle.logger.Error("destroying executor failed", "error", err)
}
handle.pluginClient.Kill()