Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for LogErrBody (0.11 sec)

  1. internal/http/response-recorder.go

    // status code and to record the response body
    type ResponseRecorder struct {
    	http.ResponseWriter
    	io.ReaderFrom
    	StatusCode int
    	// Log body of 4xx or 5xx responses
    	LogErrBody bool
    	// Log body of all responses
    	LogAllBody bool
    
    	TimeToFirstByte time.Duration
    	StartTime       time.Time
    	// number of bytes written
    	bytesWritten int
    	// number of bytes of response headers written
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 02 00:13:19 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. cmd/generic-handlers.go

    				tc.ResponseRecorder.LogErrBody = true
    			}
    
    			defer logger.AuditLog(r.Context(), w, r, mustGetClaimsFromToken(r))
    			writeErrorResponse(r.Context(), w, errorCodes.ToAPIErr(ErrUnsupportedMetadata), r.URL)
    			return
    		}
    
    		if isHTTPHeaderSizeTooLarge(r.Header) {
    			if ok {
    				tc.FuncName = "handler.ValidRequest"
    				tc.ResponseRecorder.LogErrBody = true
    			}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 01:01:15 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. cmd/metrics.go

    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if ok {
    			tc.FuncName = "handler.MetricsLegacy"
    			tc.ResponseRecorder.LogErrBody = true
    		}
    
    		mfs, err := gatherers.Gather()
    		if err != nil {
    			if len(mfs) == 0 {
    				writeErrorResponseJSON(r.Context(), w, toAdminAPIErr(r.Context(), err), r.URL)
    				return
    			}
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. cmd/http-tracer.go

    			return
    		}
    
    		tc.FuncName = getOpName(runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name())
    		tc.RequestRecorder.LogBody = logBody
    		tc.ResponseRecorder.LogAllBody = logBody
    		tc.ResponseRecorder.LogErrBody = true
    
    		f.ServeHTTP(w, r)
    	}
    }
    
    func httpTraceAll(f http.HandlerFunc) http.HandlerFunc {
    	return httpTrace(f, true)
    }
    
    func httpTraceHdrs(f http.HandlerFunc) http.HandlerFunc {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. cmd/auth-handler.go

    			// Verify if date headers are set, if not reject the request
    			amzDate, errCode := parseAmzDateHeader(r)
    			if errCode != ErrNone {
    				if ok {
    					tc.FuncName = "handler.Auth"
    					tc.ResponseRecorder.LogErrBody = true
    				}
    
    				// All our internal APIs are sensitive towards Date
    				// header, for all requests where Date header is not
    				// present we will reject such clients.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 26K bytes
    - Viewed (0)
  6. cmd/metrics-v3-handler.go

    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if ok {
    			tc.FuncName = "handler.MetricsV3"
    			tc.ResponseRecorder.LogErrBody = true
    		}
    
    		innerHandler.ServeHTTP(w, r)
    	})
    
    	// Add authentication
    	h.authFn(tracedHandler).ServeHTTP(w, r)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 16:06:35 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. cmd/metrics-v2.go

    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if ok {
    			tc.FuncName = funcName
    			tc.ResponseRecorder.LogErrBody = true
    		}
    
    		mfs, err := gatherers.Gather()
    		if err != nil && len(mfs) == 0 {
    			writeErrorResponseJSON(r.Context(), w, toAdminAPIErr(r.Context(), err), r.URL)
    			return
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  8. cmd/object-handlers.go

    				} else {
    					writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				}
    				return
    			}
    			nr := httptest.NewRecorder()
    			rw := xhttp.NewResponseRecorder(nr)
    			rw.LogErrBody = true
    			rw.LogAllBody = true
    			rreq.SelectParameters.Evaluate(rw)
    			rreq.SelectParameters.Close()
    			return
    		}
    		opts := ObjectOptions{
    			Transition: TransitionOptions{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 124.2K bytes
    - Viewed (0)
Back to top