Skip to content

Commit

Permalink
versionup slog refs #10
Browse files Browse the repository at this point in the history
  • Loading branch information
sinmetal committed Jul 11, 2019
1 parent df259f2 commit 1f25a03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/morikuni/failure v0.11.0
github.com/sinmetal/gcpmetadata v0.0.0-20190612100641-8951dfda8549
github.com/sinmetal/silverdog v0.0.0-20190709122325-a885443c3d17
github.com/sinmetal/slog v0.0.0-20190711081825-b0a0994db159
github.com/sinmetal/slog v0.0.0-20190711083333-57bf0d3c271d
go.mercari.io/datastore v1.4.2
google.golang.org/api v0.6.0
google.golang.org/genproto v0.0.0-20190611190212-a7e196e89fd3
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ github.com/sinmetal/slog v0.0.0-20190711064951-3bf5344ba117 h1:PjyTprOtsCOmJfldb
github.com/sinmetal/slog v0.0.0-20190711064951-3bf5344ba117/go.mod h1:7abRLuXyxKUl/2wBVCkDmFPU8bI4nRVIoZDqOPv5W4o=
github.com/sinmetal/slog v0.0.0-20190711081825-b0a0994db159 h1:HeaoUYVk5s246zq/L7Fe2ng6wiH/3fAjWcw4yy6mm1I=
github.com/sinmetal/slog v0.0.0-20190711081825-b0a0994db159/go.mod h1:7abRLuXyxKUl/2wBVCkDmFPU8bI4nRVIoZDqOPv5W4o=
github.com/sinmetal/slog v0.0.0-20190711083333-57bf0d3c271d h1:ISYdNAZlasP8+ZhEfWLUDQ03ETMkvvm3ZrjdPwflYuQ=
github.com/sinmetal/slog v0.0.0-20190711083333-57bf0d3c271d/go.mod h1:7abRLuXyxKUl/2wBVCkDmFPU8bI4nRVIoZDqOPv5W4o=
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
Expand Down
2 changes: 1 addition & 1 deletion logtest_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func HandleLogTestAPI(w http.ResponseWriter, r *http.Request) {
var status int
ctx := slog.WithValueForHTTP(r.Context(), *r)
ctx := slog.WithValueForHTTP(r.Context(), r)
defer slog.FlushWithHTTPResponse(ctx, status)

for k, v := range r.Header {
Expand Down

0 comments on commit 1f25a03

Please sign in to comment.