aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaito Bezarius <raito@lix.systems>2024-05-10 19:54:42 +0200
committerRaito Bezarius <raito@lix.systems>2024-05-10 20:22:47 +0200
commit8404a1f66d090c5d68d8c5e958316df7d286a1e2 (patch)
tree78a3cee618c63a9ca8cda67fa5aecad762c3f640
parent964ac8b0e88fb5789b87e33273e42363958d0afb (diff)
feat(libstore): print the first line of stdout of SSH in case of failure
In case of failure to connect as can be seen in https://buildbot.lix.systems/#/builders/39/builds/1386/steps/1/logs/stdio It is difficult to understand what happened, if we enabled the talkative verbose level, we could learn about the first line SSH sent us. In practice, this is not workable, we can just make it warn all the time. Change-Id: Iaaf56894060a58f2dfc78254bb60b1c43482f9bb Signed-off-by: Raito Bezarius <raito@lix.systems>
-rw-r--r--src/libstore/ssh.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/ssh.cc b/src/libstore/ssh.cc
index 2d2c24afa..87414fe9c 100644
--- a/src/libstore/ssh.cc
+++ b/src/libstore/ssh.cc
@@ -110,7 +110,7 @@ std::unique_ptr<SSHMaster::Connection> SSHMaster::startCommand(const std::string
} catch (EndOfFile & e) { }
if (reply != "started") {
- printTalkative("SSH stdout first line: %s", reply);
+ warn("SSH to '%s' failed, stdout first line: '%s'", host, reply);
throw Error("failed to start SSH connection to '%s'", host);
}
}