Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Addresses PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jcooklin committed Aug 23, 2016
1 parent 834c450 commit 62946d1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions control/plugin/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,8 @@ func init() {
// simpleFormatter is a logrus formatter that includes only the message.
type simpleFormatter struct{}

func (_ *simpleFormatter) Format(entry *log.Entry) ([]byte, error) {
func (*simpleFormatter) Format(entry *log.Entry) ([]byte, error) {
b := &bytes.Buffer{}
fmt.Fprintf(b, "%s", entry.Message)
b.WriteByte('\n')
fmt.Fprintf(b, "%s\n", entry.Message)
return b.Bytes(), nil
}

0 comments on commit 62946d1

Please sign in to comment.