Skip to content

Commit

Permalink
Upgrade to latest version of Logrus
Browse files Browse the repository at this point in the history
  • Loading branch information
tommysitu committed Oct 24, 2018
1 parent b0cf1d2 commit b2659f2
Show file tree
Hide file tree
Showing 31 changed files with 1,147 additions and 350 deletions.
9 changes: 8 additions & 1 deletion Gopkg.lock

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

4 changes: 3 additions & 1 deletion core/handlers/v2/logs_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import (
"github.com/go-zoo/bone"
)

const defaultTimestampFormat = time.RFC3339

type HoverflyLogs interface {
GetLogs(limit int, from *time.Time) ([]*logrus.Entry, error)
}
Expand Down Expand Up @@ -78,7 +80,7 @@ func logsToLogsView(logs []*logrus.Entry) LogsView {
data[k] = v
}

data["time"] = entry.Time.Format(logrus.DefaultTimestampFormat)
data["time"] = entry.Time.Format(defaultTimestampFormat)
data["msg"] = entry.Message
data["level"] = entry.Level.String()

Expand Down
59 changes: 50 additions & 9 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.

92 changes: 92 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.

Loading

0 comments on commit b2659f2

Please sign in to comment.