Skip to content
Browse files

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

  • Loading branch information...
1 parent 2e6830f commit b81fa4f0c6cdd1aa70574f4fa3d3e08160abafca @hbons committed Dec 6, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 SparkleLib/SparkleFetcherBase.cs
View
4 SparkleLib/SparkleFetcherBase.cs
@@ -128,7 +128,9 @@ public void Start ()
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 @@ private string FetchHostKey ()
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 ();

0 comments on commit b81fa4f

Please sign in to comment.
Something went wrong with that request. Please try again.