mirror of https://github.com/Sonarr/Sonarr
Better fix for Prowl logging issues.
This commit is contained in:
parent
15526ba666
commit
12c2f7193f
|
@ -10,8 +10,6 @@ namespace NzbDrone.Core.Providers.ExternalNotification
|
|||
{
|
||||
private readonly ProwlProvider _prowlProvider;
|
||||
|
||||
private readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
public Prowl(ConfigProvider configProvider, ProwlProvider prowlProvider)
|
||||
: base(configProvider)
|
||||
{
|
||||
|
@ -41,7 +39,7 @@ namespace NzbDrone.Core.Providers.ExternalNotification
|
|||
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.WarnException(ex.Message, ex);
|
||||
_logger.WarnException(ex.Message, ex);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
@ -64,7 +62,7 @@ namespace NzbDrone.Core.Providers.ExternalNotification
|
|||
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.WarnException(ex.Message, ex);
|
||||
_logger.WarnException(ex.Message, ex);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Growl.Connector;
|
||||
using NLog;
|
||||
|
||||
|
@ -9,7 +8,7 @@ namespace NzbDrone.Core.Providers
|
|||
{
|
||||
public class GrowlProvider
|
||||
{
|
||||
private readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
private readonly Application _growlApplication = new Application("NzbDrone");
|
||||
private GrowlConnector _growlConnector;
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using NLog;
|
||||
using Prowlin;
|
||||
|
||||
|
@ -9,12 +7,7 @@ namespace NzbDrone.Core.Providers
|
|||
{
|
||||
public class ProwlProvider
|
||||
{
|
||||
private readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
public ProwlProvider()
|
||||
{
|
||||
|
||||
}
|
||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
public virtual bool Verify(string apiKey)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue