chore: add log
This commit is contained in:
		
							parent
							
								
									9c06cc666c
								
							
						
					
					
						commit
						2cfdd0b3f5
					
				@ -1191,11 +1191,14 @@ async def upload_file(prompt_id, filename, subfolder=None, content_type="image/p
 | 
			
		||||
        target_url = f"{file_upload_endpoint}?file_name={filename}&run_id={prompt_id}&type={content_type}&version=v2"
 | 
			
		||||
 | 
			
		||||
        start_time = time.time()  # Start timing here
 | 
			
		||||
        logger.info(f"Target URL: {target_url}")
 | 
			
		||||
        result = await async_request_with_retry("GET", target_url, disable_timeout=True)
 | 
			
		||||
        end_time = time.time()  # End timing after the request is complete
 | 
			
		||||
        logger.info("Time taken for getting file upload endpoint: {:.2f} seconds".format(end_time - start_time))
 | 
			
		||||
        ok = await result.json()
 | 
			
		||||
        
 | 
			
		||||
        logger.info(f"Result: {ok}")
 | 
			
		||||
 | 
			
		||||
        start_time = time.time()  # Start timing here
 | 
			
		||||
        headers = {
 | 
			
		||||
            "Content-Type": content_type,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user