From ca7e8b77868b680f031f833d4ba6eb8fbb31832a Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 26 Aug 2013 21:51:46 +0200 Subject: [PATCH] controller: Write OS and SparkleShare version to debug log on start --- SparkleLib/SparkleLogger.cs | 2 +- SparkleShare/SparkleControllerBase.cs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/SparkleLib/SparkleLogger.cs b/SparkleLib/SparkleLogger.cs index cec04796..0d4d8a1e 100755 --- a/SparkleLib/SparkleLogger.cs +++ b/SparkleLib/SparkleLogger.cs @@ -77,7 +77,7 @@ namespace SparkleLib { "Remove any sensitive information like file names, IP addresses, domain names, etc. if needed." + n + n + "------" + n + n + "SparkleShare version: " + SparkleLib.SparkleBackend.Version + n + - "Operating system: " + SparkleLib.SparkleBackend.Platform + " " + Environment.OSVersion + n; + "Operating system: " + SparkleLib.SparkleBackend.Platform + " (" + Environment.OSVersion + ")" + n; crash_report += e.GetType () + ": " + e.Message + n + e.StackTrace + n; diff --git a/SparkleShare/SparkleControllerBase.cs b/SparkleShare/SparkleControllerBase.cs index 43469711..fb8d6a33 100644 --- a/SparkleShare/SparkleControllerBase.cs +++ b/SparkleShare/SparkleControllerBase.cs @@ -161,6 +161,7 @@ namespace SparkleShare { public SparkleControllerBase () { + string app_data_path = Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData); string config_path = Path.Combine (app_data_path, "sparkleshare"); @@ -172,11 +173,13 @@ namespace SparkleShare { public virtual void Initialize () { + SparkleLogger.LogInfo ("Environment", "SparkleShare version: " + SparkleLib.SparkleBackend.Version + + ", Operating system: " + SparkleLib.SparkleBackend.Platform + " (" + Environment.OSVersion + ")"); + SparklePlugin.PluginsPath = PluginsPath; InstallProtocolHandler (); try { - // Create the SparkleShare folder and add it to the bookmarks if (CreateSparkleShareFolder ()) AddToBookmarks ();