Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Nitrox loading logging #1221

Merged
merged 3 commits into from
Aug 31, 2020

Conversation

Measurity
Copy link
Collaborator

Also fixes issue where Launcher stays stuck when you try to close it due to trying to win32 postmessage on a dead process. So now just set it to null after disposing and check for that.

NitroxPatcher/Main.cs Outdated Show resolved Hide resolved
Comment on lines 58 to 60
catch (Exception)
{
Log.Error("Error while initializing and loading dependencies.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
catch (Exception)
{
Log.Error("Error while initializing and loading dependencies.");
catch (Exception ex)
{
Log.Error(ex, "Error while initializing and loading dependencies.");

Use public static void Error(Exception ex, string message) => logger.Error(ex, message); method variant.

@@ -28,16 +32,34 @@ public static void Execute()
{
Log.Setup(true);
Optional.ApplyHasValueCondition<Object>(o => (bool)o);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potentially explicitly use UnityEngine.Object and remove the using Object = UnityEngine.Object to avoid possible conflation with C#'s object?

@Sunrunner37 Sunrunner37 merged commit ff4a812 into SubnauticaNitrox:master Aug 31, 2020
@Measurity Measurity deleted the diagnostics branch October 6, 2021 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants