fix
This commit is contained in:
		
							
								
								
									
										3
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								main.go
									
									
									
									
									
								
							@@ -49,8 +49,9 @@ func handlerWrapper(f func(*http.Request) (interface{}, int)) func(http.Response
 | 
			
		||||
			w.WriteHeader(status)
 | 
			
		||||
		}
 | 
			
		||||
		go writeMetric(start, r.URL.Path, status, int(time.Since(start).Milliseconds()), r.Method)
 | 
			
		||||
		if r.URL == "/api/v1/finish" || r.URL == "/api/v1/put":
 | 
			
		||||
		if r.URL.Path != "/api/v1/take" {
 | 
			
		||||
			log.Printf("%s %d %s", r.URL, status, time.Since(start))
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user