1620 # corrupted data -> discard and continue |
1620 # corrupted data -> discard and continue |
1621 continue |
1621 continue |
1622 |
1622 |
1623 jsonStr = data.decode("utf-8", "backslashreplace") |
1623 jsonStr = data.decode("utf-8", "backslashreplace") |
1624 |
1624 |
1625 logging.debug("<Debug-Server> %s", jsonStr) |
1625 logging.getLogger(__name__).debug("<Debug-Server> %s", jsonStr) |
1626 ##print("Server: ", jsonStr) ## debug # __IGNORE_WARNING_M891__ |
1626 ##print("Server: ", jsonStr) ## debug # __IGNORE_WARNING_M891__ |
1627 |
1627 |
1628 self.handleJsonCommand(jsonStr, sock) |
1628 self.handleJsonCommand(jsonStr, sock) |
1629 |
1629 |
1630 def handleJsonCommand(self, jsonStr, sock): |
1630 def handleJsonCommand(self, jsonStr, sock): |