mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	only return stderr if return code is not 0 (#4863)
This commit is contained in:
		
							parent
							
								
									dc738e9be7
								
							
						
					
					
						commit
						abc40f2581
					
				@ -1250,10 +1250,10 @@ def vainfo():
 | 
				
			|||||||
        {
 | 
					        {
 | 
				
			||||||
            "return_code": vainfo.returncode,
 | 
					            "return_code": vainfo.returncode,
 | 
				
			||||||
            "stderr": vainfo.stderr.decode("unicode_escape").strip()
 | 
					            "stderr": vainfo.stderr.decode("unicode_escape").strip()
 | 
				
			||||||
            if vainfo.stderr.decode()
 | 
					            if vainfo.returncode != 0
 | 
				
			||||||
            else "",
 | 
					            else "",
 | 
				
			||||||
            "stdout": vainfo.stdout.decode("unicode_escape").strip()
 | 
					            "stdout": vainfo.stdout.decode("unicode_escape").strip()
 | 
				
			||||||
            if vainfo.stdout.decode()
 | 
					            if vainfo.returncode == 0
 | 
				
			||||||
            else "",
 | 
					            else "",
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user