mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-26 17:47:08 +00:00
Exceptioneer is only enabled during release.
Nzbdrone.exe waits for enter before closing on error.
This commit is contained in:
parent
a8815cd5ea
commit
7d3f6c81e0
2 changed files with 18 additions and 5 deletions
|
@ -12,6 +12,9 @@
|
||||||
<target name="file" xsi:type="File"
|
<target name="file" xsi:type="File"
|
||||||
layout="${longdate} [${level}] ${logger}: ${message} ${exception:ToString}"
|
layout="${longdate} [${level}] ${logger}: ${message} ${exception:ToString}"
|
||||||
fileName="${basedir}/App_Data/logs/${shortdate}.txt" />
|
fileName="${basedir}/App_Data/logs/${shortdate}.txt" />
|
||||||
|
<target name ="xmlFile" xsi:type="File"
|
||||||
|
fileName="${basedir}/App_Data/logs/${shortdate}.xml"
|
||||||
|
layout="${log4jxmlevent:includeSourceInfo=true:includeCallSite=true:includeMDC=true:appInfo=true:includeNDC=true:includeNLogData=true}"/>
|
||||||
</targets>
|
</targets>
|
||||||
|
|
||||||
<rules>
|
<rules>
|
||||||
|
@ -19,6 +22,11 @@
|
||||||
<logger name="IIS*" minlevel="Trace" writeTo="consoleTarget"/>
|
<logger name="IIS*" minlevel="Trace" writeTo="consoleTarget"/>
|
||||||
<logger name="Application" minlevel="Trace" writeTo="consoleTarget"/>
|
<logger name="Application" minlevel="Trace" writeTo="consoleTarget"/>
|
||||||
<logger name="*" minlevel="Trace" writeTo="udpTarget"/>
|
<logger name="*" minlevel="Trace" writeTo="udpTarget"/>
|
||||||
|
<logger name="*" minlevel="Off" writeTo="xmlFile">
|
||||||
|
<filters>
|
||||||
|
<when condition="logger == 'NzbDrone.SubSonic'" action="Ignore" />
|
||||||
|
</filters>
|
||||||
|
</logger>
|
||||||
<logger name="*" minlevel="Trace" writeTo="file">
|
<logger name="*" minlevel="Trace" writeTo="file">
|
||||||
<filters>
|
<filters>
|
||||||
<when condition="logger == 'NzbDrone.SubSonic'" action="Ignore" />
|
<when condition="logger == 'NzbDrone.SubSonic'" action="Ignore" />
|
||||||
|
|
|
@ -48,6 +48,9 @@ private static void Main()
|
||||||
{
|
{
|
||||||
AppDomainException(e);
|
AppDomainException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Console.WriteLine("Press enter to exit.");
|
||||||
|
Console.ReadLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void Attach()
|
private static void Attach()
|
||||||
|
@ -88,12 +91,14 @@ private static void AppDomainException(object excepion)
|
||||||
Console.WriteLine("EPIC FAIL: {0}", excepion);
|
Console.WriteLine("EPIC FAIL: {0}", excepion);
|
||||||
Logger.Fatal("EPIC FAIL: {0}", excepion);
|
Logger.Fatal("EPIC FAIL: {0}", excepion);
|
||||||
|
|
||||||
|
#if Release
|
||||||
new Client
|
new Client
|
||||||
{
|
{
|
||||||
ApiKey = "43BBF60A-EB2A-4C1C-B09E-422ADF637265",
|
ApiKey = "43BBF60A-EB2A-4C1C-B09E-422ADF637265",
|
||||||
ApplicationName = "NZBDrone",
|
ApplicationName = "NZBDrone",
|
||||||
CurrentException = excepion as Exception
|
CurrentException = excepion as Exception
|
||||||
}.Submit();
|
}.Submit();
|
||||||
|
#endif
|
||||||
|
|
||||||
IISController.StopServer();
|
IISController.StopServer();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue