From 0d484132f9eb84ca103a0b6368b12590d3b795d9 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 30 Sep 2009 03:17:43 +0200 Subject: [PATCH] Changed default log settings and updated cvar descriptions. Changed anti-stick log event type to a core event. --- .../cfg/sourcemod/zombiereloaded/zombiereloaded.cfg | 10 +++++++--- src/zr/antistick.inc | 4 ++-- src/zr/cvars.inc | 6 +++--- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/cstrike/cfg/sourcemod/zombiereloaded/zombiereloaded.cfg b/cstrike/cfg/sourcemod/zombiereloaded/zombiereloaded.cfg index 7151e00..ce1f97a 100644 --- a/cstrike/cfg/sourcemod/zombiereloaded/zombiereloaded.cfg +++ b/cstrike/cfg/sourcemod/zombiereloaded/zombiereloaded.cfg @@ -83,13 +83,13 @@ ammo_57mm_max 500 // p90, fiveseven // Log (core) // ---------------------------------------------------------------------------- -// Enable logging of events in the plugin. Fatal errors are logged independent on this setting. +// Enable logging of events in the plugin. Fatal errors are always logged. // Default: "1" zr_log "1" // A bit field that specify what event types to log. See logging section (3.3) in manual for details. -// Default: "3" -zr_log_flags "3" +// Default: "2" +zr_log_flags "2" // Enable module filtering. Only events from listed modules will be logged. // Default: "0" @@ -99,6 +99,10 @@ zr_log_module_filter "0" // Default: "1" zr_log_ignore_console "1" +// Always log error messages no matter what logging flags or modules filters that are enabled. +// Default: "1" +zr_log_error_override "1" + // Print log events to admin chat in addition to the log file. // Default: "0" zr_log_print_admins "0" diff --git a/src/zr/antistick.inc b/src/zr/antistick.inc index 7963972..b19bc1c 100644 --- a/src/zr/antistick.inc +++ b/src/zr/antistick.inc @@ -164,7 +164,7 @@ stock bool:AntiStickLoadData() BuildPath(Path_SM, fullpath, PLATFORM_MAX_PATH, filepath); // Log action to game events. - LogEvent(false, LogType_Normal, LOG_GAME_EVENTS, LogModule_AntiStick, "Loaded Data", "Antistick data has been loaded from \"%s\"", fullpath); + LogEvent(false, LogType_Normal, LOG_CORE_EVENTS, LogModule_AntiStick, "Loaded Data", "Antistick data has been loaded from \"%s\"", fullpath); // Retrieve keyvalue data from a file, and store in server's memory. KvRewind(g_kvAntiStick); @@ -185,7 +185,7 @@ stock AntiStickSaveData() BuildPath(Path_SM, fullpath, PLATFORM_MAX_PATH, filepath); // Log action to game events. - LogEvent(false, LogType_Normal, LOG_GAME_EVENTS, LogModule_AntiStick, "Saved Data", "Antistick data has been saved to \"%s\"", fullpath); + LogEvent(false, LogType_Normal, LOG_CORE_EVENTS, LogModule_AntiStick, "Saved Data", "Antistick data has been saved to \"%s\"", fullpath); // Dump keyvalue structure into a file from the server's memory. KvRewind(g_kvAntiStick); diff --git a/src/zr/cvars.inc b/src/zr/cvars.inc index 4e11dba..964e4c6 100644 --- a/src/zr/cvars.inc +++ b/src/zr/cvars.inc @@ -224,11 +224,11 @@ CvarsCreate() // =========================== // Log (core) // =========================== - g_hCvarsList[CVAR_LOG] = CreateConVar("zr_log", "1", "Enable logging of events in the plugin. Fatal errors are logged independent on this setting."); - g_hCvarsList[CVAR_LOG_FLAGS] = CreateConVar("zr_log_flags", "3", "A bit field that specify what event types to log. See logging section (3.3) in manual for details."); + g_hCvarsList[CVAR_LOG] = CreateConVar("zr_log", "1", "Enable logging of events in the plugin. Fatal errors are always logged."); + g_hCvarsList[CVAR_LOG_FLAGS] = CreateConVar("zr_log_flags", "2", "A bit field that specify what event types to log. See logging section (3.3) in manual for details."); g_hCvarsList[CVAR_LOG_MODULE_FILTER] = CreateConVar("zr_log_module_filter", "0", "Enable module filtering. Only events from listed modules will be logged."); g_hCvarsList[CVAR_LOG_IGNORE_CONSOLE] = CreateConVar("zr_log_ignore_console", "1", "Don't log events triggered by console commands that are executed by the console itself, like commands in configs. Enable this command to avoid spamming logs with events like weapon restrictions."); - g_hCvarsList[CVAR_LOG_ERROR_OVERRIDE] = CreateConVar("zr_log_error_override", "1", "Always log error messages. Overrides module filter and logging flags."); + g_hCvarsList[CVAR_LOG_ERROR_OVERRIDE] = CreateConVar("zr_log_error_override", "1", "Always log error messages no matter what logging flags or modules filters that are enabled."); g_hCvarsList[CVAR_LOG_PRINT_ADMINS] = CreateConVar("zr_log_print_admins", "0", "Print log events to admin chat in addition to the log file."); g_hCvarsList[CVAR_LOG_PRINT_CHAT] = CreateConVar("zr_log_print_chat", "0", "Print log events to public chat in addition to the log file.");