Facepunch / garrysmod-requests

Feature requests for Garry's Mod
83 stars 24 forks source link

`lua_log_cl` convar for `clientside_errors.txt` #2373

Closed wrefgtzweve closed 2 months ago

wrefgtzweve commented 2 months ago

Details

Currently the convar lua_log_sv exists which when enabled logs all server errors to garrsymod/lua_errors_server.txt, however there is no lua_log_cl equivalent. By default every client error gets written to this file which most servers don't use/ignore serving no purpose but bloat. It'd be helpful if there was a convar to toggle this feature off / have it off by default like sv errors.

robotboy655 commented 2 months ago

image

Huh?

shockpast commented 2 months ago

image

Huh?

Server logs all clientside errors into clientside_errors.txt and there is no lua_log_cl command to disable it, only lua_log_sv that disables only serverside stuff

robotboy655 commented 2 months ago

Added sv_log_client_errors (defaults to 1) which affects clientside_errors.txt. It has help text with possible values.