Skip to content

Commit

Permalink
upgrade logrus
Browse files Browse the repository at this point in the history
  • Loading branch information
richie committed Jun 3, 2019
1 parent 29ac3c6 commit a9229ab
Show file tree
Hide file tree
Showing 38 changed files with 111 additions and 4,394 deletions.
23 changes: 3 additions & 20 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/utils/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type loggerEntryWithfields interface {

func init() {
Logger = logrus.New()
// 显示代码行号
Logger.SetReportCaller(true)
// 禁止终端输出
//src, err := os.OpenFile(os.DevNull, os.O_APPEND|os.O_WRONLY, os.ModeAppend)
Expand Down
13 changes: 0 additions & 13 deletions vendor/github.com/inconshreveable/mousetrap/LICENSE

This file was deleted.

23 changes: 0 additions & 23 deletions vendor/github.com/inconshreveable/mousetrap/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions vendor/github.com/inconshreveable/mousetrap/trap_others.go

This file was deleted.

98 changes: 0 additions & 98 deletions vendor/github.com/inconshreveable/mousetrap/trap_windows.go

This file was deleted.

46 changes: 0 additions & 46 deletions vendor/github.com/inconshreveable/mousetrap/trap_windows_1.4.go

This file was deleted.

65 changes: 19 additions & 46 deletions vendor/github.com/sirupsen/logrus/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vendor/github.com/sirupsen/logrus/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions vendor/github.com/sirupsen/logrus/entry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions vendor/github.com/sirupsen/logrus/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions vendor/github.com/sirupsen/logrus/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions vendor/github.com/sirupsen/logrus/terminal_check_aix.go

This file was deleted.

Loading

0 comments on commit a9229ab

Please sign in to comment.