Skip to content

Commit

Permalink
Skip the access log for /favicon.ico path
Browse files Browse the repository at this point in the history
  • Loading branch information
mstmdev committed Jul 2, 2022
1 parent 3e3dca6 commit dc6224b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/httpfs/file_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func initDefaultMiddleware(engine *gin.Engine, logger io.Writer) {
engine.Use(gin.LoggerWithConfig(gin.LoggerConfig{
Formatter: defaultLogFormatter,
Output: logger,
SkipPaths: []string{"/favicon.ico"},
}), gin.Recovery(), middleware.ApiStat())
}

Expand Down

0 comments on commit dc6224b

Please sign in to comment.