fetcher: add some more debug rules for fetching the host key

This commit is contained in:
Hylke Bons 2012-12-06 21:35:53 +00:00
parent 42419eb0c3
commit 39bd51bc48

View file

@ -128,7 +128,9 @@ namespace SparkleLib {
host_key = FetchHostKey ();
if (string.IsNullOrEmpty (RemoteUrl.Host) || host_key == null) {
SparkleLogger.LogInfo ("Auth", "Could not fetch host key");
Failed ();
return;
}
@ -272,6 +274,8 @@ namespace SparkleLib {
else
process.StartInfo.Arguments = "-t rsa -p " + RemoteUrl.Port + " " + RemoteUrl.Host;
SparkleLogger.LogInfo ("Cmd", process.StartInfo.FileName + " " + process.StartInfo.Arguments);
process.Start ();
string host_key = process.StandardOutput.ReadToEnd ().Trim ();
process.WaitForExit ();