Skip to content

Commit

Permalink
Fixed format with %v
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <[email protected]>
  • Loading branch information
vishr committed Mar 6, 2016
1 parent bfff5bf commit c7a42f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (l *Logger) log(v Level, format string, args ...interface{}) {

if v >= l.level {
if format == "" && len(args) > 0 {
args[0] = fmt.Sprintf("%s|%s|%s", l.levels[v], l.prefix, args[0])
args[0] = fmt.Sprintf("%s|%s|%v", l.levels[v], l.prefix, args[0])
fmt.Fprintln(l.out, args...)
} else {
// TODO: Improve performance
Expand Down

0 comments on commit c7a42f4

Please sign in to comment.