From 4587ca254653937a2d53e7d214b978621d63f1c7 Mon Sep 17 00:00:00 2001 From: TimePath Date: Fri, 11 Dec 2015 09:16:06 +1100 Subject: [PATCH] Console: reduce verbosity --- qcsrc/common/notifications.qh | 28 ++----------------- qcsrc/server/cl_client.qc | 3 +- qcsrc/server/mutators/mutator/gamemode_ctf.qc | 2 +- .../mutators/mutator/gamemode_domination.qc | 2 +- qcsrc/server/mutators/mutator/gamemode_tdm.qc | 2 +- 5 files changed, 7 insertions(+), 30 deletions(-) diff --git a/qcsrc/common/notifications.qh b/qcsrc/common/notifications.qh index 10ce481d7..8586a16dc 100644 --- a/qcsrc/common/notifications.qh +++ b/qcsrc/common/notifications.qh @@ -897,29 +897,6 @@ float notif_global_error; void RegisterNotifications_First() { notif_global_error = false; - - #ifdef SVQC - #define dedi (server_is_dedicated ? "a dedicated " : "") - #else - #define dedi "" - #endif - - LOG_INFOF("Beginning notification initialization on %s%s program...\n", dedi, PROGNAME); - #undef dedi - - // maybe do another implementation of this with checksums? for now, we don't need versioning - /*if(autocvar_notification_version != NOTIF_VERSION) - { - #ifdef CSQC - if(autocvar_notification_version_mismatch_client_error) - #else - if(autocvar_notification_version_mismatch_server_error) - #endif - notif_global_error = true; - - printf("^1NOTIFICATION VERSION MISMATCH: ^7program = %s, config = %d, code = %d.\n", - PROGNAME, autocvar_notification_version, NOTIF_VERSION); - }*/ } void RegisterNotifications_Done() @@ -928,11 +905,10 @@ void RegisterNotifications_Done() { // shit happened... stop the loading of the program now if this is unacceptable if(autocvar_notification_errors_are_fatal) - error("Notification initialization failed! Read above and fix the errors!\n"); + LOG_FATAL("Notification initialization failed! Read above and fix the errors!\n"); else - LOG_INFO("Notification initialization failed! Read above and fix the errors!\n"); + LOG_SEVERE("Notification initialization failed! Read above and fix the errors!\n"); } - else { LOG_INFO("Notification initialization successful!\n"); } } // NOW we actually activate the declarations diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index df1b6446f..953f79c84 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -1018,7 +1018,8 @@ void ClientConnect () player_count = 0; } - if(IS_REAL_CLIENT(self)) { PlayerStats_PlayerBasic_CheckUpdate(self); } + // TODO: xonstat elo.txt support, until then just 404s + if(false && IS_REAL_CLIENT(self)) { PlayerStats_PlayerBasic_CheckUpdate(self); } PlayerScore_Attach(self); ClientData_Attach(); diff --git a/qcsrc/server/mutators/mutator/gamemode_ctf.qc b/qcsrc/server/mutators/mutator/gamemode_ctf.qc index 51395b865..699f1034c 100644 --- a/qcsrc/server/mutators/mutator/gamemode_ctf.qc +++ b/qcsrc/server/mutators/mutator/gamemode_ctf.qc @@ -2759,7 +2759,7 @@ void ctf_DelayedInit() // Do this check with a delay so we can wait for teams to // if no teams are found, spawn defaults if(find(world, classname, "ctf_team") == world) { - LOG_INFO("No \"ctf_team\" entities found on this map, creating them anyway.\n"); + LOG_TRACE("No \"ctf_team\" entities found on this map, creating them anyway.\n"); ctf_SpawnTeam("Red", NUM_TEAM_1 - 1); ctf_SpawnTeam("Blue", NUM_TEAM_2 - 1); if(ctf_teams >= 3) diff --git a/qcsrc/server/mutators/mutator/gamemode_domination.qc b/qcsrc/server/mutators/mutator/gamemode_domination.qc index da839e517..b52bf8c81 100644 --- a/qcsrc/server/mutators/mutator/gamemode_domination.qc +++ b/qcsrc/server/mutators/mutator/gamemode_domination.qc @@ -695,7 +695,7 @@ void dom_DelayedInit() // Do this check with a delay so we can wait for teams to // if no teams are found, spawn defaults if(find(world, classname, "dom_team") == world || autocvar_g_domination_teams_override >= 2) { - LOG_INFO("No \"dom_team\" entities found on this map, creating them anyway.\n"); + LOG_TRACE("No \"dom_team\" entities found on this map, creating them anyway.\n"); domination_teams = bound(2, ((autocvar_g_domination_teams_override < 2) ? autocvar_g_domination_default_teams : autocvar_g_domination_teams_override), 4); dom_spawnteams(domination_teams); } diff --git a/qcsrc/server/mutators/mutator/gamemode_tdm.qc b/qcsrc/server/mutators/mutator/gamemode_tdm.qc index 5da71b817..0c17a479b 100644 --- a/qcsrc/server/mutators/mutator/gamemode_tdm.qc +++ b/qcsrc/server/mutators/mutator/gamemode_tdm.qc @@ -71,7 +71,7 @@ void tdm_DelayedInit() // if no teams are found, spawn defaults if(find(world, classname, "tdm_team") == world) { - LOG_INFO("No \"tdm_team\" entities found on this map, creating them anyway.\n"); + LOG_TRACE("No \"tdm_team\" entities found on this map, creating them anyway.\n"); int numteams = min(4, autocvar_g_tdm_teams_override); -- 2.39.2