1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-22 22:15:17 -04:00

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
+4 -1
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;
}
}