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
commit 50e91c0043
6 changed files with 53 additions and 27 deletions

View file

@ -3,12 +3,15 @@ using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using System.Text;
using NLog;
using Ninject;
namespace NzbDrone.Core.Providers.Core
{
public class UdpProvider
{
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
[Inject]
public UdpProvider()
{
@ -168,7 +171,7 @@ namespace NzbDrone.Core.Providers.Core
catch (Exception exc)
{
Console.WriteLine(exc);
Logger.TraceException(exc.Message, exc);
return null;
}
}