Skip to content

Commit

Permalink
fix(backend): Debug logging cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Dec 19, 2024
1 parent 32c2b47 commit 1f2a760
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions backend/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1f2a760

Please sign in to comment.