mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-01 03:30:06 +00:00
Use Microsoft.Extensions.Logging abstraction
This commit is contained in:
parent
b0fd432126
commit
0f8b3c6347
310 changed files with 1421 additions and 2058 deletions
|
|
@ -4,7 +4,7 @@ using MediaBrowser.Controller.Entities.Movies;
|
|||
using MediaBrowser.Controller.Entities.TV;
|
||||
using MediaBrowser.Controller.MediaEncoding;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using MediaBrowser.Model.MediaInfo;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
|
@ -123,7 +123,7 @@ namespace Emby.Server.Implementations.MediaEncoder
|
|||
{
|
||||
if (chapter.StartPositionTicks >= runtimeTicks)
|
||||
{
|
||||
_logger.Info("Stopping chapter extraction for {0} because a chapter was found with a position greater than the runtime.", video.Name);
|
||||
_logger.LogInformation("Stopping chapter extraction for {0} because a chapter was found with a position greater than the runtime.", video.Name);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -166,7 +166,7 @@ namespace Emby.Server.Implementations.MediaEncoder
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.ErrorException("Error extracting chapter images for {0}", ex, string.Join(",", video.Path));
|
||||
_logger.LogError("Error extracting chapter images for {0}", ex, string.Join(",", video.Path));
|
||||
success = false;
|
||||
break;
|
||||
}
|
||||
|
|
@ -226,7 +226,7 @@ namespace Emby.Server.Implementations.MediaEncoder
|
|||
|
||||
foreach (var image in deadImages)
|
||||
{
|
||||
_logger.Debug("Deleting dead chapter image {0}", image);
|
||||
_logger.LogDebug("Deleting dead chapter image {0}", image);
|
||||
|
||||
try
|
||||
{
|
||||
|
|
@ -234,7 +234,7 @@ namespace Emby.Server.Implementations.MediaEncoder
|
|||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
_logger.ErrorException("Error deleting {0}.", ex, image);
|
||||
_logger.LogError("Error deleting {0}.", ex, image);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue