HCSocket: remove extra prints

This commit is contained in:
Trammell Hudson
2022-02-05 21:31:50 +01:00
parent 33fb8cfd77
commit c2f413153e

View File

@@ -143,10 +143,10 @@ class HCSocket:
) )
def send(self, msg): def send(self, msg):
print(now(), "TX:", msg)
buf = json.dumps(msg, separators=(',', ':') ) buf = json.dumps(msg, separators=(',', ':') )
# swap " for ' # swap " for '
buf = re.sub("'", '"', buf) buf = re.sub("'", '"', buf)
print(now(), "TX:", buf)
if self.http: if self.http:
self.ws.send_binary(self.encrypt(buf)) self.ws.send_binary(self.encrypt(buf))
else: else:
@@ -162,5 +162,5 @@ class HCSocket:
if buf is None: if buf is None:
return None return None
print(now(), "RX:", buf) #print(now(), "RX:", buf)
return buf return buf