mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Better error log
This commit is contained in:
parent
11aed2ab61
commit
5e4cfbaf3f
1 changed files with 8 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using NLog;
|
||||
using System.Diagnostics;
|
||||
using NLog;
|
||||
using Wox.Infrastructure.Exception;
|
||||
|
||||
namespace Wox.Infrastructure.Logger
|
||||
|
|
@ -12,7 +13,12 @@ namespace Wox.Infrastructure.Logger
|
|||
#if DEBUG
|
||||
throw e;
|
||||
#else
|
||||
logger.Error(e.Message + "\r\n" + e.StackTrace);
|
||||
while (e.InnerException != null)
|
||||
{
|
||||
logger.Error(e.Message);
|
||||
logger.Error(e.StackTrace);
|
||||
e = e.InnerException;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue