Disable HttpServer log messages.
This commit is contained in:
		
							parent
							
								
									f210024e93
								
							
						
					
					
						commit
						515e6655e8
					
				@ -1,3 +1,3 @@
 | 
			
		||||
name = "basicswap"
 | 
			
		||||
 | 
			
		||||
__version__ = "0.11.43"
 | 
			
		||||
__version__ = "0.11.44"
 | 
			
		||||
 | 
			
		||||
@ -90,6 +90,13 @@ def listExplorerActions(swap_client):
 | 
			
		||||
 | 
			
		||||
class HttpHandler(BaseHTTPRequestHandler):
 | 
			
		||||
 | 
			
		||||
    def log_error(self, format, *args):
 | 
			
		||||
        super().log_message(format, *args)
 | 
			
		||||
 | 
			
		||||
    def log_message(self, format, *args):
 | 
			
		||||
        # TODO: Add debug flag to re-enable.
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
    def generate_form_id(self):
 | 
			
		||||
        return os.urandom(8).hex()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -562,7 +562,7 @@ class Test(unittest.TestCase):
 | 
			
		||||
 | 
			
		||||
        txid = pivxRpc('shieldsendmany "{}" "[{{\\"address\\": \\"{}\\", \\"amount\\": 1}}]"'.format(pivx_addr, pivx_sapling_addr))
 | 
			
		||||
        rtx = pivxRpc(f'getrawtransaction \"{txid}\" true')
 | 
			
		||||
        assert(rtx['version'] == 3)
 | 
			
		||||
        assert (rtx['version'] == 3)
 | 
			
		||||
 | 
			
		||||
        block_hash = pivxRpc(f'generatetoaddress 1 \"{generate_addr}\"')[0]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user