From 4d8a1668abcefa76ab3a8141c32bba214dc81483 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Thu, 20 Aug 2020 11:27:29 -0400 Subject: [PATCH] Add some more exception logging --- .../Components/Watchdog/BasicWatchdog.cs | 4 +++- .../Components/Watchdog/WindowsWatchdog.cs | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs b/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs index 2d8ffd4dfe..cafa447a71 100644 --- a/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs +++ b/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs @@ -221,8 +221,10 @@ namespace Tgstation.Server.Host.Components.Watchdog Server.EnableCustomChatCommands(); } - catch + catch (Exception ex) { + Logger.LogTrace(ex, "Controller initialization failure!"); + // kill the controllers bool serverWasActive = Server != null; diff --git a/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdog.cs b/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdog.cs index baf536f923..a59fa95ff0 100644 --- a/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdog.cs +++ b/src/Tgstation.Server.Host/Components/Watchdog/WindowsWatchdog.cs @@ -229,9 +229,10 @@ namespace Tgstation.Server.Host.Components.Watchdog { await InitialLink(cancellationToken).ConfigureAwait(false); } - catch + catch (Exception ex) { // We won't worry about disposing activeSwappable here as we can't dispose dmbToUse here. + Logger.LogTrace(ex, "Initial link error, nulling ActiveSwappable"); ActiveSwappable = null; throw; }