From 4967d44df9630dce4eff874fe548ceadcff2b5ac Mon Sep 17 00:00:00 2001 From: "David J. Bianco" Date: Fri, 10 Jan 2025 15:47:16 -0500 Subject: [PATCH] User input (commands) now base64 encoded in the log file --- SSH/ssh_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SSH/ssh_server.py b/SSH/ssh_server.py index 7963e31..7c9437d 100755 --- a/SSH/ssh_server.py +++ b/SSH/ssh_server.py @@ -181,7 +181,7 @@ async def handle_client(process: asyncssh.SSHServerProcess, server: MySSHServer) try: async for line in process.stdin: line = line.rstrip('\n') - logger.info("User input", extra={"details": line}) + logger.info("User input", extra={"details": b64encode(line.encode('utf-8')).decode('utf-8')}) # Send the command to the LLM and give the response to the user llm_response = await with_message_history.ainvoke(