comparison php/read/getBookDetails.php @ 18:c41a5802b26c

better debugging
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sun, 30 Jul 2017 05:34:46 -0400
parents ae1459564f66
children 46382face560
comparison
equal deleted inserted replaced
17:ae1459564f66 18:c41a5802b26c
217 if ($code=='RequestThrottled') { 217 if ($code=='RequestThrottled') {
218 usleep(200000); // Try to reduce throttling until we get a 218 usleep(200000); // Try to reduce throttling until we get a
219 // principled solution in place 219 // principled solution in place
220 } 220 }
221 else { 221 else {
222 file_put_contents('/var/ywww/debug/phpDebug',"parms bd: ". 222 file_put_contents('/var/ywww/debug/phpDebug',"parms $url\nbd: ".
223 print_r($parameters,TRUE)."\n",FILE_APPEND); 223 print_r($parameters,TRUE)."\n",FILE_APPEND);
224 if ($code=="") { 224 if ($code=="") {
225 file_put_contents('/var/ywww/debug/phpDebug',"error elt:\n$out\n",FILE_APPEND); 225 file_put_contents('/var/ywww/debug/phpDebug',"error elt:\n$out\n",FILE_APPEND);
226 } 226 }
227 } 227 }