aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Program.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-01-01 18:41:02 +0100
committerVasily <JustAMan@users.noreply.github.com>2019-01-02 02:30:59 +0300
commita44936f97f8afc2817d3491615a7cfe1e31c251c (patch)
treec7a621ff4a04cf3a7d471bc2c8df22a4681f1266 /Jellyfin.Server/Program.cs
parent75efe9cf0a15b6871726a4c2e8802e2af88cf1d1 (diff)
Fix and improve logging
Diffstat (limited to 'Jellyfin.Server/Program.cs')
-rw-r--r--Jellyfin.Server/Program.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs
index b768e1032..dd5e427df 100644
--- a/Jellyfin.Server/Program.cs
+++ b/Jellyfin.Server/Program.cs
@@ -59,14 +59,16 @@ namespace Jellyfin.Server
AppDomain.CurrentDomain.UnhandledException += (sender, e)
=> _logger.LogCritical((Exception)e.ExceptionObject, "Unhandled Exception");;
- ApplicationHost.LogEnvironmentInfo(_logger, appPaths, true);
+ _logger.LogInformation("Jellyfin version: {Version}", entryAssembly.GetName().Version);
+
+ EnvironmentInfo environmentInfo = getEnvironmentInfo();
+ ApplicationHost.LogEnvironmentInfo(_logger, appPaths, environmentInfo);
SQLitePCL.Batteries_V2.Init();
// Allow all https requests
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });
- EnvironmentInfo environmentInfo = getEnvironmentInfo();
var fileSystem = new ManagedFileSystem(_loggerFactory.CreateLogger("FileSystem"), environmentInfo, null, appPaths.TempDirectory, true);
using (var appHost = new CoreAppHost(
@@ -144,7 +146,7 @@ namespace Jellyfin.Server
{
// For some reason the csproj name is used instead of the assembly name
using (Stream rscstr = typeof(Program).Assembly
- .GetManifestResourceStream("EmbyServer.Resources.Configuration.logging.json"))
+ .GetManifestResourceStream("Jellyfin.Server.Resources.Configuration.logging.json"))
using (Stream fstr = File.Open(path, FileMode.CreateNew))
{
await rscstr.CopyToAsync(fstr);