mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
logging update.
This commit is contained in:
@@ -58,7 +58,7 @@ namespace NzbDrone.Core.Jobs
|
|||||||
{
|
{
|
||||||
if (IsProcessing)
|
if (IsProcessing)
|
||||||
{
|
{
|
||||||
_logger.Trace("Queue is already running. Ignoring scheduler's request.");
|
_logger.Trace("Queue is already running. Ignoring scheduler request.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -16,10 +16,15 @@ namespace NzbDrone.Core.Jobs
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
|
{
|
||||||
|
if (Options != null)
|
||||||
{
|
{
|
||||||
return string.Format("[{0}({1})]", JobType.Name, Options);
|
return string.Format("[{0}({1})]", JobType.Name, Options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return string.Format("[{0}]", JobType.Name);
|
||||||
|
}
|
||||||
|
|
||||||
public enum JobSourceType
|
public enum JobSourceType
|
||||||
{
|
{
|
||||||
User,
|
User,
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
using System.Net;
|
using System.IO;
|
||||||
|
using System.Net;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
using NzbDrone.Api.RootFolders;
|
||||||
using NzbDrone.Api.Series;
|
using NzbDrone.Api.Series;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
@@ -36,6 +38,10 @@ namespace NzbDrone.Integration.Test
|
|||||||
{
|
{
|
||||||
var series = Series.Lookup("archer").First();
|
var series = Series.Lookup("archer").First();
|
||||||
|
|
||||||
|
var rootFolder = RootFolders.Post(new RootFolderResource { Path = Directory.GetCurrentDirectory() });
|
||||||
|
|
||||||
|
series.RootFolderId = rootFolder.Id;
|
||||||
|
|
||||||
Series.Post(series);
|
Series.Post(series);
|
||||||
|
|
||||||
Series.All().Should().HaveCount(1);
|
Series.All().Should().HaveCount(1);
|
||||||
|
Reference in New Issue
Block a user