Remove logging
This commit is contained in:
		
							parent
							
								
									ea933c2380
								
							
						
					
					
						commit
						298d18525b
					
				
					 1 changed files with 3 additions and 6 deletions
				
			
		|  | @ -118,8 +118,6 @@ class JoyDance: | ||||||
|                     raise Exception('ERROR: Invalid pairing code!') |                     raise Exception('ERROR: Invalid pairing code!') | ||||||
| 
 | 
 | ||||||
|                 json_body = await resp.json() |                 json_body = await resp.json() | ||||||
|                 import pprint |  | ||||||
|                 pprint.pprint(json_body) |  | ||||||
| 
 | 
 | ||||||
|                 self.pairing_url = json_body['pairingUrl'].replace('https://', 'wss://') |                 self.pairing_url = json_body['pairingUrl'].replace('https://', 'wss://') | ||||||
|                 if not self.pairing_url.endswith('/'): |                 if not self.pairing_url.endswith('/'): | ||||||
|  | @ -128,7 +126,6 @@ class JoyDance: | ||||||
| 
 | 
 | ||||||
|                 self.tls_certificate = json_body['tlsCertificate'] |                 self.tls_certificate = json_body['tlsCertificate'] | ||||||
| 
 | 
 | ||||||
|                 print(self.pairing_url) |  | ||||||
|                 self.requires_punch_pairing = json_body.get('requiresPunchPairing', False) |                 self.requires_punch_pairing = json_body.get('requiresPunchPairing', False) | ||||||
| 
 | 
 | ||||||
|     async def send_initiate_punch_pairing(self): |     async def send_initiate_punch_pairing(self): | ||||||
|  | @ -165,8 +162,8 @@ class JoyDance: | ||||||
| 
 | 
 | ||||||
|     async def send_message(self, __class, data={}): |     async def send_message(self, __class, data={}): | ||||||
|         ''' Send JSON message to server ''' |         ''' Send JSON message to server ''' | ||||||
|         if __class != 'JD_PhoneScoringData': |         # if __class != 'JD_PhoneScoringData': | ||||||
|             print('>>>', __class, data) |         #    print('>>>', __class, data) | ||||||
| 
 | 
 | ||||||
|         msg = {'root': {'__class': __class}} |         msg = {'root': {'__class': __class}} | ||||||
|         if data: |         if data: | ||||||
|  | @ -181,7 +178,7 @@ class JoyDance: | ||||||
| 
 | 
 | ||||||
|     async def on_message(self, message): |     async def on_message(self, message): | ||||||
|         message = json.loads(message) |         message = json.loads(message) | ||||||
|         print('<<<', message) |         # print('<<<', message) | ||||||
| 
 | 
 | ||||||
|         __class = message['__class'] |         __class = message['__class'] | ||||||
|         if __class == 'JD_PhoneDataCmdHandshakeContinue': |         if __class == 'JD_PhoneDataCmdHandshakeContinue': | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue