Skip to content

Commit ccb2f3d

Browse files
committed
update test
1 parent 6535fe8 commit ccb2f3d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
GoLogex
22
=======
33
[![Build Status](https://api.travis-ci.org/chzyer/gologex.png?branch=master)](https://travis-ci.org/chzyer/gologex)
4+
[![GoDoc](https://godoc.org/github.com/chzyer/gologex?status.svg)](https://godoc.org/github.com/chzyer/gologex)
45

56

67
An golang log lib, supports tracking and level, wrap by standard log lib

err.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
func NewError(info string, format ...interface{}) *TrackError {
14-
err := errors.New(fmt.Sprintf(info, format...))
14+
err := fmt.Errorf(info, format...)
1515
return &TrackError{
1616
error: err,
1717
}

logex_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func TestLogex(t *testing.T) {
4242
test(buf)
4343
ret := buf.String()
4444

45-
println("\n--------\n", ret)
45+
println("--------\n", ret)
4646

4747
except := []string{
4848
".test:logex_test.go:19]aa",

0 commit comments

Comments
 (0)