Skip to content

Commit

Permalink
Reduce log verbosity (gitpod-io#18664)
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf authored Sep 5, 2023
1 parent 242d370 commit 882ac56
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion components/ws-proxy/pkg/proxy/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ func WorkspaceAuthHandler(domain string, info WorkspaceInfoProvider) mux.Middlew

ws := info.WorkspaceInfo(wsID)
if ws == nil {
log.WithField("workspaceId", wsID).Warn("did not find workspace info")
resp.WriteHeader(http.StatusNotFound)

return
Expand Down
1 change: 0 additions & 1 deletion components/ws-proxy/pkg/proxy/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,6 @@ func workspaceMustExistHandler(config *Config, infoProvider WorkspaceInfoProvide
coords := getWorkspaceCoords(req)
info := infoProvider.WorkspaceInfo(coords.ID)
if info == nil {
log.WithFields(log.OWI("", coords.ID, "")).Info("no workspace info found - redirecting to start")
redirectURL := fmt.Sprintf("%s://%s/start/?not_found=true#%s", config.GitpodInstallation.Scheme, config.GitpodInstallation.HostName, coords.ID)
http.Redirect(resp, req, redirectURL, http.StatusFound)
return
Expand Down

0 comments on commit 882ac56

Please sign in to comment.