summaryrefslogtreecommitdiffhomepage
path: root/logging.go
diff options
context:
space:
mode:
authorMohammed Al Sahaf <[email protected]>2020-04-09 00:31:51 +0300
committerGitHub <[email protected]>2020-04-08 15:31:51 -0600
commit7dfd69cdc5966ae454e35cd6e976686131bfda8d (patch)
tree4d58832966c5136d5be3d9b3f63dcb07c30999d1 /logging.go
parent28fdf64dc510472ccd9e6d46eb149d19cd70919a (diff)
downloadcaddy-7dfd69cdc5966ae454e35cd6e976686131bfda8d.tar.gz
caddy-7dfd69cdc5966ae454e35cd6e976686131bfda8d.zip
chore: make the linter happier (#3245)
* chore: make the linter happier * chore: remove reference to maligned linter in .golangci.yml
Diffstat (limited to 'logging.go')
-rw-r--r--logging.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/logging.go b/logging.go
index bd291ff60..1017293ff 100644
--- a/logging.go
+++ b/logging.go
@@ -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