mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Fix testing indexers
This commit is contained in:
@@ -24,6 +24,11 @@ namespace Jackett.Models
|
||||
public string SearchTerm { get; set; }
|
||||
public string SanitizedSearchTerm { get; set; }
|
||||
|
||||
public TorznabQuery()
|
||||
{
|
||||
Categories = new int[0];
|
||||
}
|
||||
|
||||
public string GetEpisodeSearchString()
|
||||
{
|
||||
if (Season == 0)
|
||||
|
@@ -13,10 +13,13 @@ namespace Jackett
|
||||
{
|
||||
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);
|
||||
// OWIN seems to give lots of these exceptions but we are not interested in them.
|
||||
if (context.Exception.Message != "Error while copying content to a stream.")
|
||||
{
|
||||
Engine.Logger.Error("Unhandled exception: " + context.Exception.GetExceptionDetails());
|
||||
var request = await context.Request.Content.ReadAsStringAsync();
|
||||
Engine.Logger.Error("Unhandled exception url: " + context.Request.RequestUri);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user