Relax rate limits, reduce SSH warning noise, add step logging helpers

This commit is contained in:
Reditus committed 2026-05-16 19:50:54 +01:00
1 parent 7f3ef08e7e
commit 27d87b3d31
4 files changed
+68 -15

No files matched your search

+2 -1
View File
@@ -85,7 +85,8 @@ class SSHService:
err = stderr.read().decode('utf-8', errors='replace')
rc = stdout.channel.recv_exit_status()
if rc != 0:
logger.warning("SSH command failed (rc=%d): %s", rc, err[:200])
cmd_short = command[:80] + '...' if len(command) > 80 else command
logger.warning("SSH command failed (rc=%d): cmd=%s err=%s", rc, cmd_short, err[:100] if err else 'none')
return out, err, rc
except paramiko.SSHException as e:
logger.error("SSH command error: %s", e)