mirror of
				https://github.com/restic/restic.git
				synced 2025-11-04 04:37:14 +00:00 
			
		
		
		
	
		
			
	
	
		
			12 lines
		
	
	
		
			284 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			12 lines
		
	
	
		
			284 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								// +build !debug
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								package debug
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import "net/http"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// RoundTripper returns a new http.RoundTripper which logs all requests (if
							 | 
						||
| 
								 | 
							
								// debug is enabled). When debug is not enabled, upstream is returned.
							 | 
						||
| 
								 | 
							
								func RoundTripper(upstream http.RoundTripper) http.RoundTripper {
							 | 
						||
| 
								 | 
							
									return upstream
							 | 
						||
| 
								 | 
							
								}
							 |