mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Replaced get and post with ajax to prevent XSRF.
Replaced some usages of Console.Writeline with proper logging.
This commit is contained in:
parent
2cbc78c780
commit
50e91c0043
6 changed files with 53 additions and 27 deletions
|
@ -5,12 +5,14 @@ using System.Linq;
|
|||
using System.Net;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.Text.RegularExpressions;
|
||||
using NLog;
|
||||
using NzbDrone.Core.Model;
|
||||
|
||||
namespace NzbDrone.Core.Providers
|
||||
{
|
||||
public class AutoConfigureProvider
|
||||
{
|
||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
public SabnzbdInfoModel AutoConfigureSab()
|
||||
{
|
||||
|
@ -88,8 +90,8 @@ namespace NzbDrone.Core.Providers
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine("Failed to get response from: {0}", url);
|
||||
Console.WriteLine(ex.Message, ex);
|
||||
Logger.Trace("Failed to get response from: {0}", url);
|
||||
Logger.Trace(ex.Message, ex);
|
||||
}
|
||||
|
||||
return String.Empty;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue