Update Jellyfin.Server/Program.cs
Co-Authored-By: dkanada <dkanada@users.noreply.github.com>
This commit is contained in:
parent
2702dca8b6
commit
1258a3766f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user