From: erickson Date: Sat, 19 Aug 2006 16:33:11 +0000 (+0000) Subject: updated log output to be more srfsh-ish X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c535ccbcc6f785f80d2017a228006aa060b0a9e2;p=opensrf%2Fbjwebb.git updated log output to be more srfsh-ish git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@760 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/gateway/osrf_json_gateway.c b/src/gateway/osrf_json_gateway.c index 598cddb..1425e46 100644 --- a/src/gateway/osrf_json_gateway.c +++ b/src/gateway/osrf_json_gateway.c @@ -136,10 +136,11 @@ static int osrf_json_gateway_method_handler (request_rec *r) { /* ----------------------------------------------------------------- */ /* log all requests to the activity log */ growing_buffer* act = buffer_init(128); - buffer_fadd(act, "[%s] %s:%s", r->connection->remote_ip, service, method ); + buffer_fadd(act, "[%s] %s %s", r->connection->remote_ip, service, method ); char* str; int i = 0; while( (str = osrfStringArrayGetString(mparams, i++)) ) - buffer_fadd(act, " %s", str); + if( i == 1 ) buffer_fadd(act, " %s", str); + else buffer_fadd(act, ", %s", str); osrfLogActivity( OSRF_LOG_MARK, act->buf ); buffer_free(act);