dasisdormax / cs2-multiserver

Managing multiple CS2 Servers with ease
Apache License 2.0
56 stars 10 forks source link

How to turn off logging in MSM? #22

Open lostsoul6 opened 9 months ago

lostsoul6 commented 9 months ago

Hi @dasisdormax ,

Is it possible to turn off logs in /msm.d/cs2/log/instance-name ? If yes , how should I achieve it?

lostsoul6 commented 9 months ago

Hi @dasisdormax can you please help me with this? thanks

dasisdormax commented 9 months ago

There is no feature to disable the game logs. Do you really need that?

lostsoul6 commented 9 months ago

@dasisdormax I have the exact same setup (addons,plugins) on two different VMs that are on the same dedicated server . The only difference is that one is using steamcmd directly without logs and the other is with msm which is logging the console . I noticed that CPU usage in the server with msm is higher than the one without msm . Since every other single variable is the same in my setup , I'm assuming that the logging feature of msm could be the reason . I would like to turn it off and see if it makes any difference .

dasisdormax commented 9 months ago

I can't imagine the logging to have a significant performance impact, and think other reasons are more likely.

If you want to try to disable logging anyway, you can edit the file program/Core/Server/functions.sh, around line 70, and replace the line script -c '$(quote $LAUNCH_CMD)' "$LOGDIR/\$(timestamp)-server.log" with just $LAUNCH_CMD

lostsoul6 commented 9 months ago

@dasisdormax thanks it worked . By disabling logging , I was able to get around the same CPU usage as the other server . The difference is noticeable for me as my resources are limited .