mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user