Skip to content

Instantly share code, notes, and snippets.

@thomasleveil
Created August 4, 2012 16:42
Show Gist options
  • Save thomasleveil/3258732 to your computer and use it in GitHub Desktop.
Save thomasleveil/3258732 to your computer and use it in GitHub Desktop.
[Urt42 server bug] #cucurb1 - log lines limited to 1024 char

In the server log file, some log lines can have content over 1024 char but they get truncated after the 1024th char, then a space is added, and then the next log line is concatenated to that first line.

We end up with a long line (over 1024) which is the result of :

  • a line content of more than 1024 char truncated to 1024 char
  • a space
  • another 2nd log line content

Example

29:24 InitRound: \sv_allowdownload\0\g_matchmode\0\g_gametype\4\sv_maxclients\12\sv_floodprotect\1\g_warmup\20\capturelimit\0\sv_hostname\Le ^4po^7tag^1er ^7de ^2Courgette ^3[4.2]\g_followstrict\0\fraglimit\15\timelimit\20\g_cahtime\60\g_swaproles\0\g_roundtime\3\g_bombexplodetime\40\g_bombdefusetime\10\g_hotpotato\2\g_waverespawns\0\g_redwave\15\g_bluewave\15\g_respawndelay\8\g_suddendeath\1\g_maxrounds\20\g_friendlyfire\2\g_allowvote\536870984\g_armbands\2\auth_notoriety\0\auth_cheaters\1\auth_enable\0\g_ctfUnsubWait\0\dmflags\0\sv_minRate\0\sv_maxRate\0\sv_minPing\0\sv_maxPing\120\sv_dlURL\urbanterror.net\g_maxGameClients\0\g_deadchat\2\g_gear\0\g_teamnamered\patates\g_teamnameblue\navets\g_survivorrule\0\g_NextMap\ut4_algiers\version\ioQ3 1.35urt linux-i386 Aug  3 2012\protocol\70\mapname\ut4_casa\sv_privateClients\0\ Admin\Courgette\ Email\courgette@bigbrotherbot.net\gamename\q3urt42\g_needpass\0\g_enableDust\0\g_enableBreath\0\g_antilagvis\0\g_survivor\1\g_enablePrecip\0\auth_status\Off\g_modversion\4. 29:48 ClientUserinfo: 0 \ip\78.207.134.100:27960\name\Courgette\racered\0\raceblue\2\rate\8000\ut_timenudge\0\cg_rgb\128 128 128\funred\capor\funblue\capyw\cg_predictitems\0\cg_physics\1\cg_autoPickup\-1\gear\GLAOWUA\snaps\20\model\sarge\headmodel\sarge\team_model\james\team_headmodel\*james\color1\4\color2\5\handicap\100\sex\male\cl_anonymous\0\authc\66809\teamtask\0\cl_guid\F650A1A224D57CDD1023138479FF92D9\weapmodes\00000101220000020002

fix suggestions

  1. truncate long lines to 1024 char but make sure to ends them with a new line character
  2. do not truncate long lines to 1024 char (or make the maximum length higher)
@Barbatos
Copy link

Barbatos commented Aug 5, 2012

should be fixed in UrT 4.2.002

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment