Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for LogIf (0.14 sec)

  1. internal/logger/logger.go

    	if err == nil {
    		return
    	}
    	logIf(ctx, subsystem, err, errKind...)
    }
    
    // LogIf prints a detailed error message during
    // the execution of the server, if it is not an
    // ignored error.
    func LogIf(ctx context.Context, subsystem string, err error, errKind ...interface{}) {
    	if logIgnoreError(err) {
    		return
    	}
    	logIf(ctx, subsystem, err, errKind...)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  2. cmd/api-errors.go

    		HTTPStatusCode: http.StatusBadRequest,
    	},
    
    	// Generic Invalid-Request error. Should be used for response errors only for unlikely
    	// corner case errors for which introducing new APIErrorCode is not worth it. LogIf()
    	// should be used to log the error at the source of the error for debugging purposes.
    	ErrInvalidRequest: {
    		Code:           "InvalidRequest",
    		Description:    "Invalid Request",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
Back to top