mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 10:13:14 -04:00 
			
		
		
		
	logging: Don't use PrintF when not needed (#1599)
These log print don't have any verbs, so just use plain Print
This commit is contained in:
		
							
								
								
									
										2
									
								
								plugin/cache/cache.go
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								plugin/cache/cache.go
									
									
									
									
										vendored
									
									
								
							| @@ -177,7 +177,7 @@ func (w *ResponseWriter) set(m *dns.Msg, key int, mt response.Type, duration tim | ||||
|  | ||||
| // Write implements the dns.ResponseWriter interface. | ||||
| func (w *ResponseWriter) Write(buf []byte) (int, error) { | ||||
| 	log.Printf("[WARNING] Caching called with Write: not caching reply") | ||||
| 	log.Print("[WARNING] Caching called with Write: not caching reply") | ||||
| 	if w.prefetch { | ||||
| 		return 0, nil | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user