Skip to content

Commit

Permalink
Improved Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hardikdr committed Jun 6, 2024
1 parent 35a9020 commit 5809777
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/bootserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ func handleHTTPBoot(w http.ResponseWriter, r *http.Request, k8sClient client.Cli
clientIPs = append(clientIPs, trimmedIP)
}
}
log.Info("X-Forwarded-For Header Found in the Request", "method", r.Method, "path", r.URL.Path, "clientIPs", clientIPs)
}

var httpBootConfigs bootv1alpha1.HTTPBootConfigList
Expand All @@ -309,7 +310,7 @@ func handleHTTPBoot(w http.ResponseWriter, r *http.Request, k8sClient client.Cli

var httpBootResponseData map[string]string
if len(httpBootConfigs.Items) == 0 {
log.Info("No HTTPBootConfig found for client IP, delivering default httpboot data", "clientIP", clientIP)
log.Info("No HTTPBootConfig found for client IP, delivering default httpboot data", "clientIPs", clientIPs)
httpBootResponseData = map[string]string{
"ClientIPs": strings.Join(clientIPs, ","),
"UKIURL": defaultUKIURL,
Expand Down

0 comments on commit 5809777

Please sign in to comment.