From 1f2a7604c2322a08ecb7365d7a60b7c9039f1199 Mon Sep 17 00:00:00 2001 From: Reza Rahemtola Date: Thu, 19 Dec 2024 14:10:24 +0900 Subject: [PATCH] fix(backend): Debug logging cleanup --- backend/src/main.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/backend/src/main.py b/backend/src/main.py index 81ea726..2c0cff4 100644 --- a/backend/src/main.py +++ b/backend/src/main.py @@ -236,23 +236,14 @@ async def update( sftp.putfo(io.BytesIO(content), remote_path) sftp.close() - # Execute a command - _stdin, stdout, stderr = ssh_client.exec_command( + # Execute the command + ssh_client.exec_command( f"wget {deploy_script_url} -O /tmp/deploy-agent.sh -q --no-cache && chmod +x /tmp/deploy-agent.sh && /tmp/deploy-agent.sh {python_version} {package_manager.value}" ) - output = stdout.read().decode("utf-8") - error = stderr.read().decode("utf-8") # Close the connection ssh_client.close() - print("Command Output:") - print(output) - - if error: - print("Command Error:") - print(error) - # Register the program aleph_account = ETHAccount(config.ALEPH_SENDER_SK) async with AuthenticatedAlephHttpClient(