From: erickson Date: Tue, 18 Mar 2008 17:52:43 +0000 (+0000) Subject: for easier debugging, logging method and params on NULL return X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=79efdeb07dbb4c0ea160c854411b4e5d6d076999;p=opensrf%2Fbjwebb.git 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 --- 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; }