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

@@ -196,7 +196,7 @@ func (i *instanceManager) dispense() (plugin drivers.DriverPlugin, err error) {
// If reattachment fails, get a new plugin instance
if err != nil {
i.logger.Warn("failed to reattach to plugin, starting new instance", "err", err)
i.logger.Warn("failed to reattach to plugin, starting new instance", "error", err)
pluginInstance, err = dispenseFn()
}
} else {