Mark where ILogger is being set to null

pull/702/head
Bond_009 6 years ago
parent 0f8b3c6347
commit 3d3ec3588b

@ -180,7 +180,7 @@ namespace Emby.Dlna.Didl
return _logger;
}
return null;
return null; // TODO: @bond NullLogger
}
private string GetMimeType(string input)
@ -925,7 +925,7 @@ namespace Emby.Dlna.Didl
}
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)
{
_logger?.LogError("Error adding xml value: {value}", value);
_logger.LogError("Error adding xml value: {value}", value);
}
}

@ -539,7 +539,7 @@ namespace Emby.Dlna.PlayTo
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)

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

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

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

@ -58,6 +58,7 @@ namespace SocketHttpListener.Net
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)
:this(null, certificate, cryptoProvider, socketFactory, networkManager, textEncoding, streamHelper, fileSystem, environmentInfo)
{

Loading…
Cancel
Save