mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-04 18:17:08 +08:00 
			
		
		
		
	cmd: reverseproxy: log: use caddy logger (#6042)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							ed7e3c906a
						
					
				
				
					commit
					54823f52bc
				
			@ -308,11 +308,9 @@ func cmdReverseProxy(fs caddycmd.Flags) (int, error) {
 | 
				
			|||||||
		return caddy.ExitCodeFailedStartup, err
 | 
							return caddy.ExitCodeFailedStartup, err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	for _, to := range toAddresses {
 | 
						caddy.Log().Info("caddy proxying", zap.String("from", fromAddr.String()), zap.Strings("to", toAddresses))
 | 
				
			||||||
		fmt.Printf("Caddy proxying %s -> %s\n", fromAddr.String(), to)
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	if len(toAddresses) > 1 {
 | 
						if len(toAddresses) > 1 {
 | 
				
			||||||
		fmt.Println("Load balancing policy: random")
 | 
							caddy.Log().Info("using default load balancing policy", zap.String("policy", "random"))
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	select {}
 | 
						select {}
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user