fix one arg i bet
This commit is contained in:
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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user