updated log output to be more srfsh-ish
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Sat, 19 Aug 2006 16:33:11 +0000 (16:33 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Sat, 19 Aug 2006 16:33:11 +0000 (16:33 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@760 9efc2488-bf62-4759-914b-345cdb29e865

src/gateway/osrf_json_gateway.c

index 598cddb..1425e46 100644 (file)
@@ -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);