Add some more exception logging

This commit is contained in:
Jordan Brown
2020-08-20 11:27:29 -04:00
parent 1003c22481
commit 4d8a1668ab
2 changed files with 5 additions and 2 deletions
@@ -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;
@@ -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;
}