Replaced get and post with ajax to prevent XSRF.

Replaced some usages of Console.Writeline with proper logging.
This commit is contained in:
Mark McDowall
2011-12-18 16:07:41 -08:00
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;