mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Cleaned up logging code
Added udp logging Added SyncProvider to provide async long running tasks Refactored SyncSeries to SyncProvider Episode Info is now fetched automatically Optimized RefreshEpisodeInfo for better performance
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Threading;
|
||||
using Exceptioneer.WindowsFormsClient;
|
||||
using NLog;
|
||||
using NLog.Config;
|
||||
@@ -16,8 +17,12 @@ namespace NzbDrone
|
||||
|
||||
static void Main()
|
||||
{
|
||||
Logger.Info(Process.GetCurrentProcess().Id);
|
||||
|
||||
try
|
||||
{
|
||||
Thread.CurrentThread.Name = "Host";
|
||||
|
||||
AppDomain.CurrentDomain.UnhandledException += ((s, e) => AppDomainException(e));
|
||||
AppDomain.CurrentDomain.ProcessExit += ProgramExited;
|
||||
AppDomain.CurrentDomain.DomainUnload += ProgramExited;
|
||||
@@ -35,8 +40,8 @@ namespace NzbDrone
|
||||
#if DEBUG
|
||||
//Manually Attach debugger to IISExpress
|
||||
if (Debugger.IsAttached)
|
||||
{
|
||||
ProcessAttacher.Attach();
|
||||
{
|
||||
ProcessAttacher.Attach();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user