Skip to content

Commit

Permalink
Merge pull request #37 from bsdlp/merge_goji_logger
Browse files Browse the repository at this point in the history
merge derekdowling/goji2-logger
  • Loading branch information
Derek Dowling authored Oct 6, 2016
2 parents 1afdc1a + 031596a commit 0206f41
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 65 deletions.
5 changes: 0 additions & 5 deletions Godeps/Godeps.json

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

26 changes: 0 additions & 26 deletions _vendor/github.com/derekdowling/goji2-logger/.gitignore

This file was deleted.

26 changes: 0 additions & 26 deletions _vendor/github.com/derekdowling/goji2-logger/Godeps/Godeps.json

This file was deleted.

5 changes: 0 additions & 5 deletions _vendor/github.com/derekdowling/goji2-logger/Godeps/Readme

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (l *Logger) printRequest(ctx context.Context, r *http.Request) {
}

colorWrite(&buf, bBlue, "%q", urlStr)
log.Print(buf.String())
l.Logger.Print(buf.String())
}

func (l *Logger) printResponse(w mutil.WriterProxy, delta time.Duration) {
Expand Down Expand Up @@ -143,5 +143,5 @@ func (l *Logger) printResponse(w mutil.WriterProxy, delta time.Duration) {
colorWrite(&buf, nRed, "%s", delta.String())
}

log.Print(buf.String())
l.Logger.Print(buf.String())
}
2 changes: 1 addition & 1 deletion jsh-api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"goji.io"
"goji.io/pat"

"github.com/derekdowling/go-json-spec-handler/goji2-logger"
"github.com/derekdowling/go-stdlogger"
"github.com/derekdowling/goji2-logger"
)

// API is used to direct HTTP requests to resources
Expand Down

0 comments on commit 0206f41

Please sign in to comment.