mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-03 19:17:29 -05:00 
			
		
		
		
	httpcaddyfile: Append access logger name to log's includes (fix #3110)
This commit is contained in:
		
							parent
							
								
									d6632e2145
								
							
						
					
					
						commit
						6b60a301c0
					
				@ -555,8 +555,8 @@ func parseLog(h Helper) ([]ConfigValue, error) {
 | 
				
			|||||||
			if !ok {
 | 
								if !ok {
 | 
				
			||||||
				logCounter = 0
 | 
									logCounter = 0
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			cl.Include = []string{"http.log.access"}
 | 
					 | 
				
			||||||
			val.name = fmt.Sprintf("log%d", logCounter)
 | 
								val.name = fmt.Sprintf("log%d", logCounter)
 | 
				
			||||||
 | 
								cl.Include = []string{"http.log.access." + val.name}
 | 
				
			||||||
			val.log = cl
 | 
								val.log = cl
 | 
				
			||||||
			logCounter++
 | 
								logCounter++
 | 
				
			||||||
			h.State["logCounter"] = logCounter
 | 
								h.State["logCounter"] = logCounter
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user