about summary refs log tree commit diff
path: root/src/download-via-ssh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-14T11·20+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-14T11·20+0100
commit4db572062ccf318a6524abb8da046592a570eb94 (patch)
tree7fb43b987c6d8b8d22a4c86c306f054d623b247b /src/download-via-ssh
parentdba33d4018c07699b59f024ca61442c896579c64 (diff)
download-via-ssh: Show where we're downloading from
Diffstat (limited to 'src/download-via-ssh')
-rw-r--r--src/download-via-ssh/download-via-ssh.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/download-via-ssh/download-via-ssh.cc b/src/download-via-ssh/download-via-ssh.cc
index 68fdeb4ca25e..86cbb2057359 100644
--- a/src/download-via-ssh/download-via-ssh.cc
+++ b/src/download-via-ssh/download-via-ssh.cc
@@ -109,7 +109,8 @@ void run(Strings args)
 
     std::cout << std::endl;
 
-    std::pair<FdSink, FdSource> pipes = connect(settings.sshSubstituterHosts.front());
+    string host = settings.sshSubstituterHosts.front();
+    std::pair<FdSink, FdSource> pipes = connect(host);
 
     /* Exchange the greeting */
     writeInt(SERVE_MAGIC_1, pipes.first);
@@ -130,6 +131,7 @@ void run(Strings args)
         else {
             Path storePath = *++i;
             Path destPath = *++i;
+            printMsg(lvlError, format("downloading `%1%' via SSH from `%2%'...") % storePath % host);
             substitute(pipes, storePath, destPath);
         }
     else