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

log_fatal - add the missing log to file #102

Conversation

ithinkandicode
Copy link
Collaborator

Currently log_fatal does not log to the file, which means it doesn't get added to godot.log during mod development.

Note: The current "error" condition uses both printerr and push_error. But I've only added push_error to the "fatal-error" condition, because push_error seems to print the error by itself (including the ERROR: prefix), making the use of printerr redundant. So we may want to remove printerr for the "error" condition too after this.

Previously this func would not log to the file, which means it wouldn't show in the godot.log during mod development. Note: Unlike the `"error"` condition, I've only used `push_error` instead of also using `printerr`, because `push_error` also seems to print the error already (incl. the `ERROR: ` prefix, which `printerr` doesn't include)
Copy link
Collaborator

@Qubus0 Qubus0 left a comment

Choose a reason for hiding this comment

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

You mean it doesn't print anything to the console, so it's not included in the standard log, right? good catch

@ithinkandicode ithinkandicode merged commit af1c47a into GodotModding:develop Feb 8, 2023
@ithinkandicode ithinkandicode deleted the log-fatal-add-missing-filelog branch February 8, 2023 10:26
@ithinkandicode ithinkandicode mentioned this pull request Feb 22, 2023
@KANAjetzt KANAjetzt mentioned this pull request Feb 23, 2023
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.

2 participants