aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-01-28 14:10:56 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-01-28 14:10:56 -0500
commit8f291320c9042a07ae3ba80157b01c200c05f959 (patch)
tree965dbd1d63ad0f140c9fafd80726ed42c79d7a8c
parentfa6481ff2655c9c0d05889f53bffec59f1b771ab (diff)
update recording logging
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs9
-rw-r--r--MediaBrowser.ServerApplication/Native/WindowsPowerManagement.cs1
2 files changed, 8 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs
index ca20379b6..94381cdac 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs
+++ b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs
@@ -5,6 +5,7 @@ using MediaBrowser.Model.Logging;
using MediaBrowser.Model.Serialization;
using System;
using System.Collections.Concurrent;
+using System.Globalization;
using System.Linq;
using System.Threading;
using CommonIO;
@@ -100,7 +101,6 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
private void ScheduleWake(TimerInfo info)
{
var startDate = RecordingHelper.GetStartTime(info).AddMinutes(-5);
- _logger.Info("Scheduling system wake timer at {0} (UTC)", startDate);
try
{
@@ -123,9 +123,14 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
var timer = new Timer(TimerCallback, item.Id, length, TimeSpan.Zero);
- if (!_timers.TryAdd(item.Id, timer))
+ if (_timers.TryAdd(item.Id, timer))
+ {
+ _logger.Warn("Creating recording timer for {0}, {1}. Timer will fire in {2} minutes", item.Id, item.Name, length.TotalMinutes.ToString(CultureInfo.InvariantCulture));
+ }
+ else
{
timer.Dispose();
+ _logger.Warn("Timer already exists for item {0}", item.Id);
}
}
diff --git a/MediaBrowser.ServerApplication/Native/WindowsPowerManagement.cs b/MediaBrowser.ServerApplication/Native/WindowsPowerManagement.cs
index abfbab50c..866272639 100644
--- a/MediaBrowser.ServerApplication/Native/WindowsPowerManagement.cs
+++ b/MediaBrowser.ServerApplication/Native/WindowsPowerManagement.cs
@@ -37,6 +37,7 @@ namespace MediaBrowser.ServerApplication.Native
{
//Initialize();
//_bgWorker.RunWorkerAsync(utcTime.ToFileTime());
+ throw new NotImplementedException();
}
private void Initialize()