From fd77dbec4d7903e68e60d40d44b023eb0d33ed21 Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Thu, 15 Feb 2024 11:36:35 -0800 Subject: [PATCH] do not print update request headers --- app/lifecycle/updater.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lifecycle/updater.go b/app/lifecycle/updater.go index 47db53c5..456e6f9c 100644 --- a/app/lifecycle/updater.go +++ b/app/lifecycle/updater.go @@ -84,7 +84,7 @@ func IsNewReleaseAvailable(ctx context.Context) (bool, UpdateResponse) { req.Header.Set("User-Agent", fmt.Sprintf("ollama/%s (%s %s) Go/%s", version.Version, runtime.GOARCH, runtime.GOOS, runtime.Version())) client := getClient(req) - slog.Debug(fmt.Sprintf("checking for available update at %s with headers %v", requestURL, req.Header)) + slog.Debug("checking for available update", "requestURL", requestURL) resp, err := client.Do(req) if err != nil { slog.Warn(fmt.Sprintf("failed to check for update: %s", err))