logger: fix go-1.15-discovered conversion from int to string

logger/datastructures.go:85:10: conversion from Level (int) to string yields a string of one rune
This commit is contained in:
Christian Schwarz 2020-08-12 21:42:03 +02:00
parent 480176ba2d
commit 4f9f21f7f2

View File

@ -82,7 +82,7 @@ func (l Level) String() string {
case Error:
return "error"
default:
return string(l)
return fmt.Sprintf("unknown level %d", l)
}
}