Log the locale for each request in the activity log
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 20 Aug 2008 02:55:36 +0000 (02:55 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 20 Aug 2008 02:55:36 +0000 (02:55 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1423 9efc2488-bf62-4759-914b-345cdb29e865

src/gateway/osrf_json_gateway.c

index c1b3c39..c260d81 100644 (file)
@@ -294,7 +294,7 @@ static int osrf_json_gateway_method_handler (request_rec *r) {
                const char* authtoken = apr_table_get(r->headers_in, "X-OILS-Authtoken");
                if(!authtoken) authtoken = "";
                growing_buffer* act = buffer_init(128); 
-               buffer_fadd(act, "[%s] [%s] %s %s", r->connection->remote_ip, authtoken, service, method );
+               buffer_fadd(act, "[%s] [%s] [%s] %s %s", r->connection->remote_ip, authtoken, osrf_locale, service, method );
                char* str; int i = 0;
                while( (str = osrfStringArrayGetString(mparams, i++)) ) {
                        if( i == 1 ) {