mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +02:00
Better logger
1. Throw exception for fatal/error log when debugging 2. Write to debug output for warn/debug/info log when debugging 3. part of #355
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Wox.Core.i18n
|
||||
}
|
||||
catch (System.Exception e)
|
||||
{
|
||||
Log.Error(e.Message);
|
||||
Log.Error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -122,12 +122,8 @@ namespace Wox.Core.i18n
|
||||
}
|
||||
catch (System.Exception e)
|
||||
{
|
||||
Log.Warn("Update Plugin metadata translation failed:" + e.Message);
|
||||
#if (DEBUG)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
#endif
|
||||
var woxPluginException = new WoxPluginException(pluginPair.Metadata.Name, "Update Plugin metadata translation failed:", e);
|
||||
Log.Error(woxPluginException);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user