浏览代码

do not print update request headers

Michael Yang 1 年之前
父节点
当前提交
fd77dbec4d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/lifecycle/updater.go

+ 1 - 1
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))