We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ebe72b commit be5f49fCopy full SHA for be5f49f
modules/caddyhttp/server.go
@@ -763,9 +763,11 @@ func (s *Server) shouldLogRequest(r *http.Request) bool {
763
hostWithoutPort = r.Host
764
}
765
766
- if _, ok := s.Logs.LoggerNames[hostWithoutPort]; ok {
767
- // this host is mapped to a particular logger name
768
- return true
+ for loggerName := range s.Logs.LoggerNames {
+ if certmagic.MatchWildcard(hostWithoutPort, loggerName) {
+ // this host is mapped to a particular logger name
769
+ return true
770
+ }
771
772
for _, dh := range s.Logs.SkipHosts {
773
// logging for this particular host is disabled
0 commit comments