Rewrite all log message format

This commit is contained in:
bao-qian
2017-01-24 00:24:20 +00:00
parent fdfd684e7a
commit 045fd20d8c
25 changed files with 180 additions and 186 deletions

View File

@@ -26,10 +26,8 @@ namespace Wox.Plugin.WebSearch.SuggestionSources
}
catch (WebException e)
{
Log.Warn("Can't get suggestion from baidu");
Log.Exception(e);
Log.Exception("|Baidu.Suggestions|Can't get suggestion from baidu", e);
return new List<string>();
;
}
if (string.IsNullOrEmpty(result)) return new List<string>();
@@ -43,7 +41,7 @@ namespace Wox.Plugin.WebSearch.SuggestionSources
}
catch (JsonSerializationException e)
{
Log.Exception(e);
Log.Exception("|Baidu.Suggestions|can't parse suggestions", e);
return new List<string>();
}

View File

@@ -22,8 +22,7 @@ namespace Wox.Plugin.WebSearch.SuggestionSources
}
catch (WebException e)
{
Log.Warn("Can't get suggestion from google");
Log.Exception(e);
Log.Exception("|Google.Suggestions|Can't get suggestion from google", e);
return new List<string>();
;
}
@@ -35,7 +34,7 @@ namespace Wox.Plugin.WebSearch.SuggestionSources
}
catch (JsonSerializationException e)
{
Log.Exception(e);
Log.Exception("|Google.Suggestions|can't parse suggestions", e);
return new List<string>();
}
if (json != null)