Skip to content

Commit

Permalink
finish cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Sianao committed Nov 26, 2024
1 parent 0c80e9f commit b41b7ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions service/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ func (p *LogFormatterParams) IsOutputColor() bool {
return consoleColorMode == forceColor || (consoleColorMode == autoColor)
}

// defaultLogFormatter is the default log format function Logger middleware uses.
var DefaultLogFormatter = func(param LogFormatterParams) {
func DefaultLogFormatter(param LogFormatterParams) {
var statusColor, methodColor, resetColor string
if param.IsOutputColor() {
statusColor = param.StatusCodeColor()
Expand Down

0 comments on commit b41b7ab

Please sign in to comment.