diff --git a/src/indexer.py b/src/indexer.py index 9ebc5b4..444ff5c 100644 --- a/src/indexer.py +++ b/src/indexer.py @@ -97,7 +97,6 @@ class Indexer(IndexerBase): return [] if current.is_dir(): - logger.info(list(current.iterdir())) for child_path in current.iterdir(): collected.extend(self._discover(str(child_path))) diff --git a/src/server.py b/src/server.py index 66a988a..1decfb0 100644 --- a/src/server.py +++ b/src/server.py @@ -26,15 +26,15 @@ class Server: socket.bind((settings.SOCKET_HOST, settings.SOCKET_PORT)) socket.listen() - logger.info(f"Listening on ${settings.SOCKET_HOST}:${settings.SOCKET_PORT}") + logger.info(f"Listening on ${settings.SOCKET_HOST}:{settings.SOCKET_PORT}") while True: conn, _ = socket.accept() - query_string = conn.recv(QUERY_STRING_LENGTH) + query_string = conn.recv(QUERY_STRING_LENGTH).decode() logger.info(f"Query: {query_string}") if query_string: try: - query_results = self.indexer.query(query_string.decode()) + query_results = self.indexer.query(query_string) response = json.dumps(query_results).encode() response_length = str(len(response)) conn.sendall(response_length.encode())