Skip to content

Commit

Permalink
Merge pull request #269 from vania-pooh/master
Browse files Browse the repository at this point in the history
Fixed logging BAD_CAPABILITY status (fixes #260)
  • Loading branch information
aandryashin authored Feb 16, 2019
2 parents 533fbd2 + 17e34b4 commit dd319cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ func (c caps) capabilityJsonWireW3C(jsonWire, W3C string) string {
pairs = append(pairs, fmt.Sprintf("%s=%v", k, v))
}
result = strings.Join(pairs, " ")
} else {
log.Printf("[-] [-] [BAD_CAPABILITY] [Using default value for capability %s: should be a string or a map but is %T] [-] [-] [-] [-] [-] [-]", k, reflect.TypeOf(m[k]))
} else if v, ok := m[k]; ok && v != nil {
log.Printf(`[-] [-] [BAD_CAPABILITY] [Using default value for capability %s: unsupported value type "%s"] [-] [-] [-] [-] [-] [-]`, k, reflect.TypeOf(m[k]).String())
}
})
return result
Expand Down

0 comments on commit dd319cc

Please sign in to comment.