Just log the exception entirely so that it includes inner exceptions

This commit is contained in:
Noah Pilarski 2022-08-29 20:51:41 -04:00
parent a9a9b20e31
commit 5c04f456b6
2 changed files with 2 additions and 2 deletions

View File

@ -255,7 +255,7 @@ namespace NewHorizons.Handlers
} }
catch (Exception e) catch (Exception e)
{ {
Logger.LogError($"Error in event handler for OnPlanetLoaded on body {body.Config.name}: {e.Message} : {e.StackTrace}"); Logger.LogError($"Error in event handler for OnPlanetLoaded on body {body.Config.name}: {e}");
} }
return true; return true;

View File

@ -118,7 +118,7 @@ namespace NewHorizons
} }
catch (JsonException e) catch (JsonException e)
{ {
Logger.LogError($"{e.Message} : {e.StackTrace}"); Logger.LogError(e.ToString());
return null; return null;
} }
} }