mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 08:00:19 +01:00
Add some more exception logging
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user