Skip to content

Log fixes - #70

Merged
Fexty12573 merged 1 commit into
Fexty12573:masterfrom
Pizzabelly:log-cleanup
Jul 22, 2026
Merged

Log fixes#70
Fexty12573 merged 1 commit into
Fexty12573:masterfrom
Pizzabelly:log-cleanup

Conversation

@Pizzabelly

Copy link
Copy Markdown
Contributor

The main issue addressed here is the first log message wouldn't be included in the log file. This was because the initial state of s_file when evaluated as a boolean returns true. Checking if (!s_file) to consider opening the file only passed after the first attempted write fails and s_file is put in a error state.

The other fix is to not return on an error in log_raw(), instead handle the potential error state when deciding whether to write to the file/console or not.

Also, I added a warning that if logLevel is invalid, Stracker's Loader will crash the game when loaded.

@Fexty12573
Fexty12573 merged commit 5d2268c into Fexty12573:master Jul 22, 2026
2 checks passed
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