Fix AnimeBytes caps, Change to 4.5 #117, change all trackers to retry failed requests

This commit is contained in:
KZ
2015-07-29 18:47:51 +01:00
parent 70b9ecee1b
commit 37cf3e569c
51 changed files with 191 additions and 126 deletions

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http.ExceptionHandling;
using Jackett.Utils;
namespace Jackett
{
class WebAPIExceptionLogger : IExceptionLogger
{
public async Task LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken)
{
Engine.Logger.Error("Unhandled exception: " + context.Exception.GetExceptionDetails());
var request = await context.Request.Content.ReadAsStringAsync();
Engine.Logger.Error("Unhandled exception url: " + context.Request.RequestUri);
Engine.Logger.Error("Unhandled exception request body: " + request);
}
}
}