Skip to content

Conversation

@MegadreamsBE
Copy link
Member

fixes #3552

Essentially a client-side port of #3499 by moving the enum and CheckForSufficientDebugLevel into a shared class. Using this check makes level 4 equal to level 0 for the purposes of the level sufficiency check which allows its contents to be written to clientscript.log as intended.

At this moment the level check doesn't serve much of a purpose (as it's always set to 3 client-side, through setLogFile) but it does pave the way to someday only log down items based on the debugscript client-side if desired. Either way it's a cleaner solution than adding a secondary check for level 4.

@tederis tederis added the bugfix Solution to a bug of any kind label Jul 9, 2024
Copy link
Member

@Nico8345 Nico8345 left a comment

Choose a reason for hiding this comment

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

Looks good 🎉

@Dutchman101 Dutchman101 merged commit 1951a5e into multitheftauto:master Jul 15, 2024
MTABot pushed a commit that referenced this pull request Jul 15, 2024
1951a5e Fix outputDebugString level 4 not being logged (#3553)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Solution to a bug of any kind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Level 4 outputDebugString not written to clientscript.log

4 participants