cs2-multiserver icon indicating copy to clipboard operation
cs2-multiserver copied to clipboard

How to turn off logging in MSM?

Open lostsoul6 opened this issue 1 year ago • 5 comments

Hi @dasisdormax ,

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

lostsoul6 avatar Feb 23 '24 01:02 lostsoul6

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

lostsoul6 avatar Feb 24 '24 00:02 lostsoul6

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

dasisdormax avatar Feb 25 '24 06:02 dasisdormax

@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 .

lostsoul6 avatar Feb 25 '24 10:02 lostsoul6

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

dasisdormax avatar Feb 25 '24 17:02 dasisdormax

@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 .

lostsoul6 avatar Feb 26 '24 21:02 lostsoul6