From: Wilfried Goesgens Date: Sat, 23 Jan 2016 14:30:39 +0000 (+0100) Subject: Silence logging in non-debug usecases. The raspii users gonna love this. X-Git-Tag: Release_902~65 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=3052311a6d7a2b14d2ff24edff6344cf1ae109b4 Silence logging in non-debug usecases. The raspii users gonna love this. --- diff --git a/citadel/citserver.c b/citadel/citserver.c index 9832b7812..9f41f35f5 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -373,69 +373,6 @@ void citproto_begin_admin_session() { } - - -/* - * This loop recognizes all server commands. - */ -void do_command_loop(void) { - char cmdbuf[SIZ]; - - time(&CC->lastcmd); - memset(cmdbuf, 0, sizeof cmdbuf); /* Clear it, just in case */ - if (client_getln(cmdbuf, sizeof cmdbuf) < 1) { - syslog(LOG_ERR, "Citadel client disconnected: ending session.\n"); - CC->kill_me = KILLME_CLIENT_DISCONNECTED; - return; - } - - /* Log the server command, but don't show passwords... */ - if ( (strncasecmp(cmdbuf, "PASS", 4)) && (strncasecmp(cmdbuf, "SETP", 4)) ) { - syslog(LOG_INFO, "[%d][%s(%ld)] %s", - CC->cs_pid, CC->curr_user, CC->user.usernum, cmdbuf - ); - } - else { - syslog(LOG_INFO, "[%d][%s(%ld)]