makeSilentHandler creates an http.Handler that will run a handler with the given method only logging at debug
(server *ServerContext, privs handlerPrivs, accessPermissions []Permission, responsePermissions []Permission, method handlerMethod)
| 144 | |
| 145 | // makeSilentHandler creates an http.Handler that will run a handler with the given method only logging at debug |
| 146 | func makeSilentHandler(server *ServerContext, privs handlerPrivs, accessPermissions []Permission, responsePermissions []Permission, method handlerMethod) http.Handler { |
| 147 | return makeHandlerWithOptions(server, privs, accessPermissions, responsePermissions, method, handlerOptions{ |
| 148 | httpLogLevel: base.Ptr(silentRequestLogLevel), |
| 149 | }) |
| 150 | } |
| 151 | |
| 152 | // Creates an http.Handler that will run a handler with the given method even if the target DB is offline |
| 153 | func makeOfflineHandler(server *ServerContext, privs handlerPrivs, accessPermissions []Permission, responsePermissions []Permission, method handlerMethod) http.Handler { |
no test coverage detected