Two independent switches.
Set a writable path (e.g. "replays/") to autorecord every battle; use DB logging only while chasing storage bugs, then return it to 0.
sv_autorecordReplaysTo is a path (empty = off) set in both ConfigureDediServer() and ConfigureZoneInstance(). db_logMessages in ConfigureDediServer() traces DB protocol at brief (1) or full (2) detail.
-- Path for saving dedicated server replays. (type: string)
cvars.sv_autorecordReplaysTo = ""
-- Database protocol logging: 1 brief, 2 full. (type: integer)
cvars.db_logMessages = 0