From 79efdeb07dbb4c0ea160c854411b4e5d6d076999 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 18 Mar 2008 17:52:43 +0000 Subject: [PATCH] for easier debugging, logging method and params on NULL return git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1286 9efc2488-bf62-4759-914b-345cdb29e865 --- src/libopensrf/osrf_app_session.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libopensrf/osrf_app_session.c b/src/libopensrf/osrf_app_session.c index c5f68be..99baaa4 100644 --- a/src/libopensrf/osrf_app_session.c +++ b/src/libopensrf/osrf_app_session.c @@ -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; } -- 2.11.0