fix one arg i bet

master
Bel LaPointe 2019-12-17 16:24:44 -07:00
parent 17a762ffb0
commit 97dccbeaeb
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,9 @@ func log(lvl Level, args ...interface{}) {
if len(args) > 0 { if len(args) > 0 {
args = append([]interface{}{}, args...) args = append([]interface{}{}, args...)
v = fmt.Sprint(args) v = fmt.Sprint(args)
v = v[1 : len(v)-1] if len(args) > 1 {
v = v[1 : len(v)-1]
}
} }
logf(lvl, "%s", v) logf(lvl, "%s", v)
} }