Update Jellyfin.Server/Program.cs

Co-Authored-By: dkanada <dkanada@users.noreply.github.com>
This commit is contained in:
Bond-009 2019-10-29 17:49:41 +01:00 committed by GitHub
parent 2702dca8b6
commit 1258a3766f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ namespace Jellyfin.Server
var stopWatch = new Stopwatch(); var stopWatch = new Stopwatch();
stopWatch.Start(); stopWatch.Start();
// Log all uncaught exception to std error // Log all uncaught exceptions to std error
static void UnhandledExceptionToConsole(object sender, UnhandledExceptionEventArgs e) => static void UnhandledExceptionToConsole(object sender, UnhandledExceptionEventArgs e) =>
Console.Error.WriteLine("Unhandled Exception\n" + e.ExceptionObject.ToString()); Console.Error.WriteLine("Unhandled Exception\n" + e.ExceptionObject.ToString());
AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionToConsole; AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionToConsole;