ChrisNZL / Tallowmere2

Changelog, issue tracker, and development knowledge for Tallowmere 2.
https://tallowmere2.com
13 stars 0 forks source link

Verbose Logging: Overflow prevention triggering with ShieldMastery #1048

Closed ChrisNZL closed 2 years ago

ChrisNZL commented 2 years ago

Auto report. 0.3.5d. Feedback ID: 20220616-LG3SK

Need to not spam the same warning over and over if Verbose Stats & Achievements is enabled.

8:13:44, Frame 7182, LOG »  Task.IncreaseProgress: id UnlockCharacter_BushidoGirl: progress.currentValue 100 has already reached maxValue 100. Not progressing.
8:13:44, Frame 7182, LOG »  Task.IncreaseProgress: id ShieldMastery: progress.currentValue 1000 has already reached maxValue 1000. Not progressing.
[[[ ^ REPEATING MESSAGE... ]]]

8:14:06, Frame 8779, LOG »  Task.IncreaseProgress: id UnlockCharacter_Ghoul: progress.currentValue 100 has already reached maxValue 100. Not progressing.
[[[ ^ REPEATING MESSAGE... ]]]

8:14:09, Frame 8984, LOG »  Task.IncreaseProgress: id ShieldMastery: progress.currentValue 1000 has already reached maxValue 1000. Not progressing.

>>>>> OVERFLOW PREVENTION: REPEATED MESSAGE >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

OUTPUT LOGGER: Previous log event has happened 150 times in a row. Forcing hard quit...
ChrisNZL commented 2 years ago

Fixed in 0.3.5f.

Added a HashSet within Option_Logging_VerboseStatsAndAchievements for certain log messages to ensure identical messages don't get logged and spammed too much.