From 66a1b1f39a1e1d5499b548b36d18c8daa872d7da Mon Sep 17 00:00:00 2001 From: tjpcc Date: Sat, 28 Jan 2023 14:52:35 -0700 Subject: gopher support. Some of the contrib packages were originally built gemini-specific and had to be refactored into generic core functionality and thin protocol-specific wrappers for each of gemini and gopher. --- logging/middleware.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'logging/middleware.go') diff --git a/logging/middleware.go b/logging/middleware.go index 5527ce7..5442203 100644 --- a/logging/middleware.go +++ b/logging/middleware.go @@ -3,7 +3,6 @@ package logging import ( "context" "errors" - "fmt" "io" "time" @@ -38,7 +37,7 @@ func (lr *loggedResponseBody) log() { end := time.Now() _ = lr.logger.Log( "msg", "request", - "ts", end, + "ts", end.UTC(), "dur", end.Sub(lr.start), "url", lr.request.URL, "status", lr.response.Status, @@ -74,7 +73,6 @@ type loggedWriteToResponseBody struct { } func (lwtr loggedWriteToResponseBody) WriteTo(dst io.Writer) (int64, error) { - fmt.Println("lwtrb.WriteTo()") n, err := lwtr.body.(io.WriterTo).WriteTo(dst) if err == nil { lwtr.written += int(n) -- cgit v1.2.3