omit driver key/val from details

This commit is contained in:
Chelsea Holland Komlo 2018-03-29 12:30:12 -04:00
parent 4019723cf5
commit a17f0d8875

View file

@ -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, ", ")
}