mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	middleware/log: allows logging based on response classes (#325)
Add the ability to add a class of responses to be logged; success, denial or error. The default is to log everything (all). Fixes #258
This commit is contained in:
		| @@ -41,7 +41,7 @@ func New(zones []string, keys []*DNSKEY, next middleware.Handler) Dnssec { | ||||
| func (d Dnssec) Sign(state request.Request, zone string, now time.Time) *dns.Msg { | ||||
| 	req := state.Req | ||||
|  | ||||
| 	mt, _ := response.Classify(req) // TODO(miek): need opt record here? | ||||
| 	mt, _ := response.Typify(req) // TODO(miek): need opt record here? | ||||
| 	if mt == response.Delegation { | ||||
| 		return req | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user