Log first change exception

This commit is contained in:
bao-qian
2016-05-15 17:03:06 +01:00
parent 87497d2d09
commit cf9c41f437
20 changed files with 92 additions and 71 deletions

View File

@@ -87,7 +87,7 @@ namespace Wox.Plugin.CMD
}
catch (Exception e)
{
Log.Error(e);
Log.Exception(e);
}
return results;
}

View File

@@ -118,7 +118,7 @@ namespace Wox.Plugin.PluginManagement
catch (WebException e)
{
Log.Warn("Can't connect to Wox plugin website, check your conenction");
Log.Error(e);
Log.Exception(e);
return new List<Result>();
}
List<WoxPluginResult> searchedPlugins;
@@ -129,7 +129,7 @@ namespace Wox.Plugin.PluginManagement
catch(JsonSerializationException e)
{
context.API.ShowMsg("Coundn't parse api search results", "Please update your Wox!", string.Empty);
Log.Error(e);
Log.Exception(e);
return results;
}
@@ -164,7 +164,7 @@ namespace Wox.Plugin.PluginManagement
var info = "download plugin " + r.name + "failed.";
MessageBox.Show(info);
Log.Warn(info);
Log.Error(e);
Log.Exception(e);
return false;
}
context.API.InstallPlugin(filePath);

View File

@@ -61,7 +61,7 @@ namespace Wox.Plugin.Program.ProgramSources
}
catch (Exception e)
{
Log.Error(e);
Log.Exception(e);
}
}
}

View File

@@ -72,7 +72,7 @@ namespace Wox.Plugin.Program.ProgramSources
catch (Exception e)
{
var woxPluginException = new WoxPluginException("Program", $"GetAppFromDirectory failed: {path}", e);
Log.Error(woxPluginException);
Log.Exception(woxPluginException);
}
}

View File

@@ -29,7 +29,7 @@ namespace Wox.Plugin.WebSearch.SuggestionSources
catch (WebException e)
{
Log.Warn("Can't get suggestion from baidu");
Log.Error(e);
Log.Exception(e);
return new List<string>(); ;
}
@@ -45,7 +45,7 @@ namespace Wox.Plugin.WebSearch.SuggestionSources
}
catch (JsonSerializationException e)
{
Log.Error(e);
Log.Exception(e);
return new List<string>();
}

View File

@@ -24,7 +24,7 @@ namespace Wox.Plugin.WebSearch.SuggestionSources
catch (WebException e)
{
Log.Warn("Can't get suggestion from google");
Log.Error(e);
Log.Exception(e);
return new List<string>(); ;
}
if (string.IsNullOrEmpty(result)) return new List<string>();
@@ -35,7 +35,7 @@ namespace Wox.Plugin.WebSearch.SuggestionSources
}
catch (JsonSerializationException e)
{
Log.Error(e);
Log.Exception(e);
return new List<string>();
}
if (json != null)