Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/d43d39f9b88e4d4a20e3af313e97ec3606de5413?style=split&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
9 additions and
5 deletions
@ -42,6 +42,7 @@
<PackageReference Include= "Microsoft.Extensions.Configuration.EnvironmentVariables" Version= "3.1.0" />
<PackageReference Include= "Microsoft.Extensions.Configuration.EnvironmentVariables" Version= "3.1.0" />
<PackageReference Include= "Microsoft.Extensions.Configuration.Json" Version= "3.1.0" />
<PackageReference Include= "Microsoft.Extensions.Configuration.Json" Version= "3.1.0" />
<PackageReference Include= "Serilog.AspNetCore" Version= "3.2.0" />
<PackageReference Include= "Serilog.AspNetCore" Version= "3.2.0" />
<PackageReference Include= "Serilog.Enrichers.Thread" Version= "3.1.0" />
<PackageReference Include= "Serilog.Settings.Configuration" Version= "3.1.0" />
<PackageReference Include= "Serilog.Settings.Configuration" Version= "3.1.0" />
<PackageReference Include= "Serilog.Sinks.Async" Version= "1.4.0" />
<PackageReference Include= "Serilog.Sinks.Async" Version= "1.4.0" />
<PackageReference Include= "Serilog.Sinks.Console" Version= "3.1.1" />
<PackageReference Include= "Serilog.Sinks.Console" Version= "3.1.1" />
@ -475,17 +475,19 @@ namespace Jellyfin.Server
Serilog . Log . Logger = new LoggerConfiguration ( )
Serilog . Log . Logger = new LoggerConfiguration ( )
. ReadFrom . Configuration ( configuration )
. ReadFrom . Configuration ( configuration )
. Enrich . FromLogContext ( )
. Enrich . FromLogContext ( )
. Enrich . WithThreadId ( )
. CreateLogger ( ) ;
. CreateLogger ( ) ;
}
}
catch ( Exception ex )
catch ( Exception ex )
{
{
Serilog . Log . Logger = new LoggerConfiguration ( )
Serilog . Log . Logger = new LoggerConfiguration ( )
. WriteTo . Console ( outputTemplate : "[{Timestamp:HH:mm:ss}] [{Level:u3}] { Message:lj}{NewLine}{Exception}")
. WriteTo . Console ( outputTemplate : "[{Timestamp:HH:mm:ss}] [{Level:u3}] { ThreadId} {SourceContext}: { Message:lj} {NewLine}{Exception}")
. WriteTo . Async ( x = > x . File (
. WriteTo . Async ( x = > x . File (
Path . Combine ( appPaths . LogDirectoryPath , "log_.log" ) ,
Path . Combine ( appPaths . LogDirectoryPath , "log_.log" ) ,
rollingInterval : RollingInterval . Day ,
rollingInterval : RollingInterval . Day ,
outputTemplate : "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] { Message}{NewLine}{Exception}") )
outputTemplate : "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] { ThreadId} {SourceContext}:{ Message} {NewLine}{Exception}") )
. Enrich . FromLogContext ( )
. Enrich . FromLogContext ( )
. Enrich . WithThreadId ( )
. CreateLogger ( ) ;
. CreateLogger ( ) ;
Serilog . Log . Logger . Fatal ( ex , "Failed to create/read logger configuration" ) ;
Serilog . Log . Logger . Fatal ( ex , "Failed to create/read logger configuration" ) ;
@ -5,7 +5,7 @@
{
{
"Name" : "Console" ,
"Name" : "Console" ,
"Args" : {
"Args" : {
"outputTemplate" : "[{Timestamp:HH:mm:ss}] [{Level:u3}] { Message:lj}{NewLine}{Exception}"
"outputTemplate" : "[{Timestamp:HH:mm:ss}] [{Level:u3}] { ThreadId} {SourceContext}: { Message:lj} {NewLine}{Exception}"
}
}
} ,
} ,
{
{
@ -20,12 +20,13 @@
"retainedFileCountLimit" : 3 ,
"retainedFileCountLimit" : 3 ,
"rollOnFileSizeLimit" : true ,
"rollOnFileSizeLimit" : true ,
"fileSizeLimitBytes" : 100000000 ,
"fileSizeLimitBytes" : 100000000 ,
"outputTemplate" : "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] { Message}{NewLine}{Exception}"
"outputTemplate" : "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] { ThreadId} {SourceContext}:{ Message} {NewLine}{Exception}"
}
}
}
}
]
]
}
}
}
}
]
] ,
"Enrich" : [ "FromLogContext" , "WithThreadId" ]
}
}
}
}