From 96873aabd2a8ff52d1b5d49a2b009421a44837f3 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 4 Jun 2010 12:50:53 +0000 Subject: [PATCH] Updated debugging for jsonRPc requests git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18848 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_jsonRPC.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_jsonRPC.inc b/gosa-core/include/class_jsonRPC.inc index 54cb8b72d..f236b89b8 100644 --- a/gosa-core/include/class_jsonRPC.inc +++ b/gosa-core/include/class_jsonRPC.inc @@ -79,7 +79,8 @@ class jsonRPC { DEBUG (DEBUG_RPC, __LINE__, __FUNCTION__, __FILE__,"{$method}", "Calling: "); $response = $this->request($method,$params); if($this->success()){ - DEBUG (DEBUG_RPC, __LINE__, __FUNCTION__, __FILE__,bold($response['result']), "Result: "); + DEBUG (DEBUG_RPC, __LINE__, __FUNCTION__, __FILE__, + (is_array($response['result']))?$response['result']:bold($response['result']), "Result: "); }else{ DEBUG (DEBUG_RPC, __LINE__, __FUNCTION__, __FILE__,bold($this->get_error())."
".$response, "Result (FAILED): "); } -- 2.30.2