Mark where ILogger is being set to null

This commit is contained in:
Bond_009 2018-12-13 18:40:51 +01:00
parent 0f8b3c6347
commit 3d3ec3588b
7 changed files with 10 additions and 9 deletions

View file

@ -180,7 +180,7 @@ namespace Emby.Dlna.Didl
return _logger; return _logger;
} }
return null; return null; // TODO: @bond NullLogger
} }
private string GetMimeType(string input) private string GetMimeType(string input)
@ -925,7 +925,7 @@ namespace Emby.Dlna.Didl
} }
catch (XmlException) catch (XmlException)
{ {
_logger?.LogError("Error adding xml value: {value}", name); _logger.LogError("Error adding xml value: {value}", name);
} }
} }
@ -937,7 +937,7 @@ namespace Emby.Dlna.Didl
} }
catch (XmlException) catch (XmlException)
{ {
_logger?.LogError("Error adding xml value: {value}", value); _logger.LogError("Error adding xml value: {value}", value);
} }
} }

View file

@ -539,7 +539,7 @@ namespace Emby.Dlna.PlayTo
return _logger; return _logger;
} }
return null; return null; // TODO: @bond NullLogger
} }
private PlaylistItem GetPlaylistItem(BaseItem item, List<MediaSourceInfo> mediaSources, DeviceProfile profile, string deviceId, string mediaSourceId, int? audioStreamIndex, int? subtitleStreamIndex) private PlaylistItem GetPlaylistItem(BaseItem item, List<MediaSourceInfo> mediaSources, DeviceProfile profile, string deviceId, string mediaSourceId, int? audioStreamIndex, int? subtitleStreamIndex)

View file

@ -38,7 +38,7 @@
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<EmbeddedResource Include="Localization\iso6392.txt" /> <EmbeddedResource Include="Localization\iso6392.txt" />
<EmbeddedResource Include="Localization\countries.json" /> <EmbeddedResource Include="Localization\countries.json" />
<EmbeddedResource Include="Localization\Core\*.json" /> <EmbeddedResource Include="Localization\Core\*.json" />
@ -46,6 +46,6 @@
<EmbeddedResource Include="TextEncoding\NLangDetect\Utils\messages.properties" /> <EmbeddedResource Include="TextEncoding\NLangDetect\Utils\messages.properties" />
<EmbeddedResource Include="Localization\Ratings\*.txt" /> <EmbeddedResource Include="Localization\Ratings\*.txt" />
<EmbeddedResource Include="values.txt" /> <EmbeddedResource Include="values.txt" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View file

@ -63,7 +63,7 @@ namespace Emby.Server.Implementations.Services
if (this.RestPath == null) if (this.RestPath == null)
{ {
string contentType; string contentType;
// TODO: change null out // TODO: @bond NullLogger
this.RestPath = FindMatchingRestPath(httpMethod, pathInfo, null, out contentType); this.RestPath = FindMatchingRestPath(httpMethod, pathInfo, null, out contentType);
if (contentType != null) if (contentType != null)

View file

@ -27,7 +27,7 @@ namespace MediaBrowser.Controller.Providers
} }
public DirectoryService(IFileSystem fileSystem) public DirectoryService(IFileSystem fileSystem)
: this(null, fileSystem) // TODO change : this(null, fileSystem) // TODO: @bond NullLogger
{ {
} }

View file

@ -25,7 +25,7 @@ namespace MediaBrowser.Controller.Providers
public bool EnableRemoteContentProbe { get; set; } public bool EnableRemoteContentProbe { get; set; }
public MetadataRefreshOptions(IFileSystem fileSystem) public MetadataRefreshOptions(IFileSystem fileSystem)
: this(new DirectoryService(null, fileSystem)) // TODO : this(new DirectoryService(null, fileSystem)) // TODO: @bond NullLogger
{ {
} }

View file

@ -58,6 +58,7 @@ namespace SocketHttpListener.Net
auth_schemes = AuthenticationSchemes.Anonymous; auth_schemes = AuthenticationSchemes.Anonymous;
} }
// TODO: @bond NullLogger
public HttpListener(X509Certificate certificate, ICryptoProvider cryptoProvider, ISocketFactory socketFactory, INetworkManager networkManager, ITextEncoding textEncoding, IStreamHelper streamHelper, IFileSystem fileSystem, IEnvironmentInfo environmentInfo) public HttpListener(X509Certificate certificate, ICryptoProvider cryptoProvider, ISocketFactory socketFactory, INetworkManager networkManager, ITextEncoding textEncoding, IStreamHelper streamHelper, IFileSystem fileSystem, IEnvironmentInfo environmentInfo)
:this(null, certificate, cryptoProvider, socketFactory, networkManager, textEncoding, streamHelper, fileSystem, environmentInfo) :this(null, certificate, cryptoProvider, socketFactory, networkManager, textEncoding, streamHelper, fileSystem, environmentInfo)
{ {