Easee: panic logger with debug message (#3826)
This commit is contained in:
parent
1ae1fb34d9
commit
b4fd6264af
1 changed files with 4 additions and 0 deletions
|
|
@ -34,6 +34,10 @@ func (l *logger) Log(keyVals ...interface{}) error {
|
|||
}
|
||||
|
||||
if i%2 == 0 {
|
||||
if _, ok := v.(string); !ok {
|
||||
panic(fmt.Sprintf("expected string, got %T from %+v", v, v))
|
||||
}
|
||||
|
||||
if slices.Contains(skipped, v.(string)) {
|
||||
skip = true
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue