mirror of https://github.com/jellyfin/jellyfin.git
parent
e58bf6b2be
commit
d280dc6554
|
@ -93,11 +93,8 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
||||||
public ScheduledTaskWorker(IScheduledTask scheduledTask, IApplicationPaths applicationPaths, ITaskManager taskManager, ILogger logger)
|
public ScheduledTaskWorker(IScheduledTask scheduledTask, IApplicationPaths applicationPaths, ITaskManager taskManager, ILogger logger)
|
||||||
{
|
{
|
||||||
ArgumentNullException.ThrowIfNull(scheduledTask);
|
ArgumentNullException.ThrowIfNull(scheduledTask);
|
||||||
|
|
||||||
ArgumentNullException.ThrowIfNull(applicationPaths);
|
ArgumentNullException.ThrowIfNull(applicationPaths);
|
||||||
|
|
||||||
ArgumentNullException.ThrowIfNull(taskManager);
|
ArgumentNullException.ThrowIfNull(taskManager);
|
||||||
|
|
||||||
ArgumentNullException.ThrowIfNull(logger);
|
ArgumentNullException.ThrowIfNull(logger);
|
||||||
|
|
||||||
ScheduledTask = scheduledTask;
|
ScheduledTask = scheduledTask;
|
||||||
|
@ -332,7 +329,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_logger.LogInformation("{0} fired for task: {1}", trigger.GetType().Name, Name);
|
_logger.LogDebug("{0} fired for task: {1}", trigger.GetType().Name, Name);
|
||||||
|
|
||||||
trigger.Stop();
|
trigger.Stop();
|
||||||
|
|
||||||
|
@ -378,7 +375,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
||||||
|
|
||||||
CurrentCancellationTokenSource = new CancellationTokenSource();
|
CurrentCancellationTokenSource = new CancellationTokenSource();
|
||||||
|
|
||||||
_logger.LogInformation("Executing {0}", Name);
|
_logger.LogDebug("Executing {0}", Name);
|
||||||
|
|
||||||
((TaskManager)_taskManager).OnTaskExecuting(this);
|
((TaskManager)_taskManager).OnTaskExecuting(this);
|
||||||
|
|
||||||
|
@ -406,7 +403,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError(ex, "Error");
|
_logger.LogError(ex, "Error executing Scheduled Task");
|
||||||
|
|
||||||
failureException = ex;
|
failureException = ex;
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
||||||
{
|
{
|
||||||
var type = scheduledTask.ScheduledTask.GetType();
|
var type = scheduledTask.ScheduledTask.GetType();
|
||||||
|
|
||||||
_logger.LogInformation("Queuing task {0}", type.Name);
|
_logger.LogDebug("Queuing task {0}", type.Name);
|
||||||
|
|
||||||
lock (_taskQueue)
|
lock (_taskQueue)
|
||||||
{
|
{
|
||||||
|
@ -172,7 +172,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
||||||
{
|
{
|
||||||
var type = task.ScheduledTask.GetType();
|
var type = task.ScheduledTask.GetType();
|
||||||
|
|
||||||
_logger.LogInformation("Queuing task {0}", type.Name);
|
_logger.LogDebug("Queuing task {0}", type.Name);
|
||||||
|
|
||||||
lock (_taskQueue)
|
lock (_taskQueue)
|
||||||
{
|
{
|
||||||
|
@ -254,9 +254,6 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void ExecuteQueuedTasks()
|
private void ExecuteQueuedTasks()
|
||||||
{
|
{
|
||||||
_logger.LogInformation("ExecuteQueuedTasks");
|
|
||||||
|
|
||||||
// Execute queued tasks
|
|
||||||
lock (_taskQueue)
|
lock (_taskQueue)
|
||||||
{
|
{
|
||||||
var list = new List<Tuple<Type, TaskOptions>>();
|
var list = new List<Tuple<Type, TaskOptions>>();
|
||||||
|
|
|
@ -1019,8 +1019,8 @@ namespace Jellyfin.Networking.Manager
|
||||||
_internalInterfaces = CreateCollection(_interfaceAddresses.Where(IsInLocalNetwork));
|
_internalInterfaces = CreateCollection(_interfaceAddresses.Where(IsInLocalNetwork));
|
||||||
}
|
}
|
||||||
|
|
||||||
_logger.LogInformation("Defined LAN addresses : {0}", _lanSubnets.AsString());
|
_logger.LogInformation("Defined LAN addresses: {0}", _lanSubnets.AsString());
|
||||||
_logger.LogInformation("Defined LAN exclusions : {0}", _excludedSubnets.AsString());
|
_logger.LogInformation("Defined LAN exclusions: {0}", _excludedSubnets.AsString());
|
||||||
_logger.LogInformation("Using LAN addresses: {0}", _lanSubnets.Exclude(_excludedSubnets, true).AsNetworks().AsString());
|
_logger.LogInformation("Using LAN addresses: {0}", _lanSubnets.Exclude(_excludedSubnets, true).AsNetworks().AsString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1145,7 +1145,7 @@ namespace Jellyfin.Networking.Manager
|
||||||
}
|
}
|
||||||
|
|
||||||
_logger.LogDebug("Discovered {0} interfaces.", _interfaceAddresses.Count);
|
_logger.LogDebug("Discovered {0} interfaces.", _interfaceAddresses.Count);
|
||||||
_logger.LogDebug("Interfaces addresses : {0}", _interfaceAddresses.AsString());
|
_logger.LogDebug("Interfaces addresses: {0}", _interfaceAddresses.AsString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue