From: Art Cancro Date: Tue, 22 Mar 2011 16:47:18 +0000 (-0400) Subject: Log citadel protocol commands using the session number X-Git-Tag: v8.11~805 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=52b507d64cf8251934212ac76866235582772642 Log citadel protocol commands using the session number and also the user number in addition to their name, instead of the IP address (which with IPv6 is going to create just way too much volume). This is part of my continuing attempt to figure out why turning on guest mode on Uncensored is giving everyone access to my mailbox. --- diff --git a/citadel/citserver.c b/citadel/citserver.c index 2b70a2667..ca442f9be 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -1037,10 +1037,14 @@ void do_command_loop(void) { /* Log the server command, but don't show passwords... */ if ( (strncasecmp(cmdbuf, "PASS", 4)) && (strncasecmp(cmdbuf, "SETP", 4)) ) { - syslog(LOG_INFO, "CtdlCommand [%s] [%s] %s\n", CTDLUSERIP, CC->curr_user, cmdbuf); + syslog(LOG_INFO, "[%d][%s(%ld)] %s", + CC->cs_pid, CC->curr_user, CC->user.usernum, cmdbuf + ); } else { - syslog(LOG_INFO, "CtdlCommand [%s] [%s]