From 39bd51bc48edb8d280a4e98708f327dd15e315cc Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 6 Dec 2012 21:35:53 +0000 Subject: [PATCH] fetcher: add some more debug rules for fetching the host key --- SparkleLib/SparkleFetcherBase.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SparkleLib/SparkleFetcherBase.cs b/SparkleLib/SparkleFetcherBase.cs index 173b8b85..3f08c3ba 100755 --- a/SparkleLib/SparkleFetcherBase.cs +++ b/SparkleLib/SparkleFetcherBase.cs @@ -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 ();