fix one arg i bet
parent
17a762ffb0
commit
97dccbeaeb
4
logb.go
4
logb.go
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue