add logging

This commit is contained in:
Luke Pulverenti 2016-06-29 22:38:20 -04:00
parent e74160596d
commit 367e16dcdf
2 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,7 @@ namespace MediaBrowser.Server.Implementations.Connect
public void Run()
{
Task.Run(() => LoadCachedAddress());
LoadCachedAddress();
_timer = new PeriodicTimer(TimerCallback, null, TimeSpan.FromSeconds(5), TimeSpan.FromHours(3));
}

View File

@ -359,6 +359,8 @@ namespace MediaBrowser.Server.Implementations.Connect
{
var path = CacheFilePath;
_logger.Debug("Loading data from {0}", path);
try
{
lock (_dataFileLock)