# HG changeset patch # User Charlie Root # Date 1546624390 18000 # Node ID 5cae8d57299842b76ced4f1cf515bbdd30d2df7b # Parent c9d9b76ecbf92a3dc159889bad79ec4b1de9b6ee more error info diff -r c9d9b76ecbf9 -r 5cae8d572998 php/read/getBookDetails.php --- a/php/read/getBookDetails.php Fri Jan 04 11:35:59 2019 -0500 +++ b/php/read/getBookDetails.php Fri Jan 04 12:53:10 2019 -0500 @@ -234,8 +234,12 @@ $xml = new SimpleXMLElement($out); $resName=$xml->getName(); $code=$xml->Error->Code; - if (!$code) { + if ($code) { + $message=$xml->Error->Message; + } + else { $code=$xml->Items->Request->Errors->Error->Code; + $message=$xml->Items->Request->Errors->Error->Message; } $requestIP = $_SERVER['REMOTE_ADDR']; file_put_contents('/var/ywww/debug/phpDebug',"Losing gBD: ".$mm[0].", $resName, $code, $requestIP\n",FILE_APPEND); @@ -244,8 +248,7 @@ // principled solution in place } else { - file_put_contents('/var/ywww/debug/phpDebug',"parms $url\nbd: ". - print_r($parameters,TRUE)."\n",FILE_APPEND); + file_put_contents('/var/ywww/debug/phpDebug',"message: $message\n",FILE_APPEND); if ($code=="") { file_put_contents('/var/ywww/debug/phpDebug',"error elt:\n$out\n",FILE_APPEND); }