for easier debugging, logging method and params on NULL return
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 18 Mar 2008 17:52:43 +0000 (17:52 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 18 Mar 2008 17:52:43 +0000 (17:52 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1286 9efc2488-bf62-4759-914b-345cdb29e865

src/libopensrf/osrf_app_session.c

index c5f68be..99baaa4 100644 (file)
@@ -163,7 +163,11 @@ static osrfMessage* _osrf_app_request_recv( osrfAppRequest* req, int timeout ) {
                }
        }
 
-       osrfLogInfo( OSRF_LOG_MARK, "Returning NULL from app_request_recv after timeout");
+    char* paramString = jsonObjectToJSON(req->payload->_params);
+       osrfLogInfo( OSRF_LOG_MARK, "Returning NULL from app_request_recv after timeout: %s %s",
+        req->payload->method_name, paramString);
+    free(paramString);
+
        return NULL;
 }