mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
accesslog: add IP in builtin fields, change the format a bit. Default func: remove compression middleware, force-set debug log level, replace the old request logger with the accesslog one, use request id middlewareand keep recovery
This commit is contained in:
@@ -961,7 +961,7 @@ func (api *APIBuilder) GetRouterFilters() map[Party]*Filter {
|
||||
// The context SHOULD call its `Next` method in order to proceed to
|
||||
// the next handler in the chain or the main request handler one.
|
||||
func (api *APIBuilder) UseRouter(handlers ...context.Handler) {
|
||||
if len(handlers) == 0 {
|
||||
if len(handlers) == 0 || handlers[0] == nil {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user