internal/proxy: remove logging
Change-Id: I06ed91e2345e45ef4a7976462caa762466cf182e
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/296813
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
diff --git a/internal/proxy/client.go b/internal/proxy/client.go
index 5f2805b..64b1027 100644
--- a/internal/proxy/client.go
+++ b/internal/proxy/client.go
@@ -24,7 +24,6 @@
"golang.org/x/net/context/ctxhttp"
"golang.org/x/pkgsite/internal"
"golang.org/x/pkgsite/internal/derrors"
- "golang.org/x/pkgsite/internal/log"
)
// A Client is used by the fetch service to communicate with a module
@@ -191,11 +190,6 @@
// Versions makes a request to $GOPROXY/<path>/@v/list and returns the
// resulting version strings.
func (c *Client) Versions(ctx context.Context, modulePath string) (_ []string, err error) {
- log.Infof(ctx, "proxy.Versions(%q) starting", modulePath)
- start := time.Now()
- defer func() {
- log.Infof(ctx, "proxy.Versions(%q) took %s, err=%v\n", modulePath, time.Since(start), err)
- }()
escapedPath, err := module.EscapePath(modulePath)
if err != nil {
return nil, fmt.Errorf("module.EscapePath(%q): %w", modulePath, derrors.InvalidArgument)