File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,7 @@ func (l *Logger) Print(i ...interface{}) {
132132}
133133
134134func (l * Logger ) Printf (format string , args ... interface {}) {
135- f := fmt .Sprintf ("%s\n " , format )
136- fmt .Fprintf (l .output , f , args ... )
135+ fmt .Fprintf (l .output , format , args ... )
137136}
138137
139138func (l * Logger ) Printj (j JSON ) {
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ func test(l *Logger, t *testing.T) {
2727 l .Error ("error" )
2828 l .Errorf ("error%s" , "f" )
2929
30- assert .Contains (t , b .String (), "print\n " )
31- assert .Contains (t , b .String (), "\n printf \n " )
30+ assert .Contains (t , b .String (), "print" )
31+ assert .Contains (t , b .String (), "printf " )
3232 assert .NotContains (t , b .String (), "debug" )
3333 assert .NotContains (t , b .String (), "debugf" )
3434 assert .NotContains (t , b .String (), "info" )
You can’t perform that action at this time.
0 commit comments