mirror of
https://github.com/caddyserver/caddy.git
synced 2026-09-21 10:27:59 +00:00
chore: make the linter happier (#3245)
* chore: make the linter happier * chore: remove reference to maligned linter in .golangci.yml
This commit is contained in:
parent
28fdf64dc5
commit
7dfd69cdc5
19 changed files with 28 additions and 26 deletions
|
|
@ -217,7 +217,7 @@ func (logging *Logging) Logger(mod Module) *zap.Logger {
|
|||
|
||||
multiCore := zapcore.NewTee(cores...)
|
||||
|
||||
return zap.New(multiCore).Named(string(modID))
|
||||
return zap.New(multiCore).Named(modID)
|
||||
}
|
||||
|
||||
// openWriter opens a writer using opener, and returns true if
|
||||
|
|
@ -464,7 +464,7 @@ func (cl *CustomLog) buildCore() {
|
|||
}
|
||||
|
||||
func (cl *CustomLog) matchesModule(moduleID string) bool {
|
||||
return cl.loggerAllowed(string(moduleID), true)
|
||||
return cl.loggerAllowed(moduleID, true)
|
||||
}
|
||||
|
||||
// loggerAllowed returns true if name is allowed to emit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue