-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
[General] Logging & launching improvements #1548
Conversation
This is already done in the backend now
- Logs are now live (meaning new output is written to the file immediately instead of waiting for game exit) - If an error happens, part of the log is still written - Errors themselves are now logged with a stacktrace (not too helpful in production since function & file names are minified, but might help in development)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have some suggestions and ideas we need to talk about.
Co-authored-by: Niklas <61798668+Nocccer@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some suggestions. For me it is important to have readable strings in the source code. A string with 1-2 linebreaks is maybe readable and therefore fine, but multine strings should be fast readable, especially with alot of linebreaks.
Sorry for this discussion about how to represent multiline strings. |
I honestly don't really mind. Whatever works works for me, if you want a specific style then I'll use that specific style |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for this back adn forth.
I think the best way is to write code always in mind someone else needs to understand it possible with the least effort. So readable code is the key.
But LGTM now.
Main changes:
Other changes:
getRunnerCallWithoutCredentials
is exported again since it's needed for the new log behaviorUse the following Checklist if you have changed something on the Backend or Frontend: