mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
Rewrite all log message format
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user