Console Spam or Error Supression

Hi,

I would like to be able to supress the console messages to prevent server crashes (crashes/lag happen when it is spammed).

Such as (one from many)
DataTable warning: player: Out-of-range value

Is there any hook and/or function that I can tap into to check the string it sends, so I can stop it from sending if it contains the string?

Crashes/lag don’t happen because of the error message, they happen because of the error itself, so suppressing the error messages won’t do anything. You need to remove the add-on causing this

Either way, do you know of any hooks/functions that can help? (I’m still confident it does, and if it doesn’t, then it would be nice to not have the spam in console).