omit driver key/val from details
This commit is contained in:
parent
4019723cf5
commit
a17f0d8875
|
@ -453,7 +453,10 @@ func formatEventMessage(message, driverName string) string {
|
|||
func formatEventDetails(details map[string]string) string {
|
||||
output := make([]string, 0, len(details))
|
||||
for k, v := range details {
|
||||
output = append(output, fmt.Sprintf("%s: %s, ", k, v))
|
||||
// this has already been interpolated into the event message
|
||||
if k != "driver" {
|
||||
output = append(output, fmt.Sprintf("%s: %s, ", k, v))
|
||||
}
|
||||
}
|
||||
return strings.Join(output, ", ")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue