mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 15:03:06 +03:00
update logging
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using CommonIO;
|
||||
using MediaBrowser.Model.Logging;
|
||||
|
||||
namespace MediaBrowser.Common.Implementations.Serialization
|
||||
{
|
||||
@@ -11,10 +12,12 @@ namespace MediaBrowser.Common.Implementations.Serialization
|
||||
public class JsonSerializer : IJsonSerializer
|
||||
{
|
||||
private readonly IFileSystem _fileSystem;
|
||||
|
||||
public JsonSerializer(IFileSystem fileSystem)
|
||||
private readonly ILogger _logger;
|
||||
|
||||
public JsonSerializer(IFileSystem fileSystem, ILogger logger)
|
||||
{
|
||||
_fileSystem = fileSystem;
|
||||
_logger = logger;
|
||||
Configure();
|
||||
}
|
||||
|
||||
@@ -65,6 +68,7 @@ namespace MediaBrowser.Common.Implementations.Serialization
|
||||
|
||||
private Stream OpenFile(string path)
|
||||
{
|
||||
_logger.Debug("Deserializing file {0}", path);
|
||||
return new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 131072);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user