updated log output to be more srfsh-ish
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 19 Aug 2006 16:33:11 +0000 (16:33 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 19 Aug 2006 16:33:11 +0000 (16:33 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5604 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/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);