From: Mario Date: Wed, 23 Sep 2020 14:14:17 +0000 (+1000) Subject: Reduce verbosity of player stats debug messages X-Git-Tag: xonotic-v0.8.5~752 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8703a5b04faba08680047748a716456f69a310cd;p=xonotic%2Fxonotic-data.pk3dir.git Reduce verbosity of player stats debug messages --- diff --git a/qcsrc/common/playerstats.qc b/qcsrc/common/playerstats.qc index 28d6ccf4c..6760ea043 100644 --- a/qcsrc/common/playerstats.qc +++ b/qcsrc/common/playerstats.qc @@ -407,9 +407,9 @@ void PlayerStats_GameReport_Handler(entity fh, entity pass, float status) { // url_fclose is processing, we got a response for writing the data // this must come from HTTP - LOG_TRACE("Got response from player stats server:"); - while((s = url_fgets(fh))) { LOG_TRACE(" ", s); } - LOG_TRACE("End of response."); + LOG_DEBUG("Got response from player stats server:"); + while((s = url_fgets(fh))) { LOG_DEBUG(" ", s); } + LOG_DEBUG("End of response."); url_fclose(fh); break; } @@ -417,7 +417,7 @@ void PlayerStats_GameReport_Handler(entity fh, entity pass, float status) case URL_READY_CLOSED: { // url_fclose has finished - LOG_TRACE("Player stats written"); + LOG_DEBUG("Player stats written"); PlayerStats_GameReport_DelayMapVote = false; if(PS_GR_OUT_DB >= 0) { @@ -512,7 +512,7 @@ void PlayerStats_PlayerBasic_CheckUpdate(entity joiningplayer) { // determine whether we should retrieve playerbasic information again - LOG_TRACEF("PlayerStats_PlayerBasic_CheckUpdate('%s'): %f", + LOG_DEBUGF("PlayerStats_PlayerBasic_CheckUpdate('%s'): %f", joiningplayer.netname, time ); @@ -535,7 +535,7 @@ void PlayerStats_PlayerBasic_Handler(entity fh, entity p, float status) { case URL_READY_CANWRITE: { - LOG_TRACE("-- Sending data to player stats server"); + LOG_DEBUG("-- Sending data to player stats server"); /*url_fputs(fh, "V 1\n"); #ifdef WATERMARK url_fputs(fh, sprintf("R %s\n", WATERMARK)); @@ -662,7 +662,7 @@ void PlayerStats_PlayerDetail_AddItem(string event, string data) // now actually set the event data db_put(PS_D_IN_DB, sprintf("#%s", event), data); - LOG_TRACE("Added item ", sprintf("#%s", event), "=", data, " to PS_D_IN_DB"); + LOG_DEBUG("Added item ", sprintf("#%s", event), "=", data, " to PS_D_IN_DB"); } void PlayerStats_PlayerDetail() @@ -675,7 +675,7 @@ void PlayerStats_PlayerDetail() PS_D_IN_DB = db_create(); //uri = strcat(uri, "/player/", uri_escape(crypto_getmyidfp(0))); - LOG_TRACE("Retrieving playerstats from URL: ", autocvar_g_playerstats_playerdetail_uri); + LOG_DEBUG("Retrieving playerstats from URL: ", autocvar_g_playerstats_playerdetail_uri); url_single_fopen( autocvar_g_playerstats_playerdetail_uri, FILE_APPEND, @@ -730,7 +730,7 @@ void PlayerStats_PlayerDetail_Handler(entity fh, entity unused, float status) { case URL_READY_CANWRITE: { - LOG_TRACE("PlayerStats_PlayerDetail_Handler(): Sending data to player stats server..."); + LOG_DEBUG("PlayerStats_PlayerDetail_Handler(): Sending data to player stats server..."); url_fputs(fh, "V 1\n"); #ifdef WATERMARK url_fputs(fh, sprintf("R %s\n", WATERMARK));