mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-04 06:04:25 -04:00
Remove log message executed before logger is initialized
This commit is contained in:
parent
f3be93a4de
commit
192ec57b60
@ -9,7 +9,7 @@ namespace Emby.Server.Implementations
|
|||||||
public static class ConfigurationOptions
|
public static class ConfigurationOptions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the default configuration options.
|
/// Gets a new copy of the default configuration options.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static Dictionary<string, string> DefaultConfiguration => new Dictionary<string, string>
|
public static Dictionary<string, string> DefaultConfiguration => new Dictionary<string, string>
|
||||||
{
|
{
|
||||||
|
@ -392,7 +392,6 @@ namespace Jellyfin.Server
|
|||||||
// ELSE IF $JELLYFIN_WEB_DIR
|
// ELSE IF $JELLYFIN_WEB_DIR
|
||||||
// ELSE <bindir>/jellyfin-web
|
// ELSE <bindir>/jellyfin-web
|
||||||
var webDir = options.WebDir;
|
var webDir = options.WebDir;
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(webDir))
|
if (string.IsNullOrEmpty(webDir))
|
||||||
{
|
{
|
||||||
webDir = Environment.GetEnvironmentVariable("JELLYFIN_WEB_DIR");
|
webDir = Environment.GetEnvironmentVariable("JELLYFIN_WEB_DIR");
|
||||||
@ -407,7 +406,6 @@ namespace Jellyfin.Server
|
|||||||
// Reset webDir if the directory does not exist, or is empty
|
// Reset webDir if the directory does not exist, or is empty
|
||||||
if (!Directory.Exists(webDir) || !Directory.GetFiles(webDir).Any())
|
if (!Directory.Exists(webDir) || !Directory.GetFiles(webDir).Any())
|
||||||
{
|
{
|
||||||
_logger.LogInformation("Server will not host static content because the web content directory does not exist or is empty: {ContentRoot}", webDir);
|
|
||||||
webDir = null;
|
webDir = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user