Mercurial > hg > ywww
comparison xml/getAmazonInfo.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 | 84a412b8122c |
comparison
equal
deleted
inserted
replaced
17:ae1459564f66 | 18:c41a5802b26c |
---|---|
117 if ($code=='RequestThrottled') { | 117 if ($code=='RequestThrottled') { |
118 usleep(200000); // Try to reduce throttling until we get a | 118 usleep(200000); // Try to reduce throttling until we get a |
119 // principled solution in place | 119 // principled solution in place |
120 } | 120 } |
121 else { | 121 else { |
122 file_put_contents('/var/ywww/debug/phpDebug',"parms: $go\n". | 122 file_put_contents('/var/ywww/debug/phpDebug',"parms: $go\nurl: $url\n". |
123 print_r($parameters,TRUE)."\n",FILE_APPEND); | 123 print_r($parameters,TRUE)."\n",FILE_APPEND); |
124 if ($code=="") { | 124 if ($code=="") { |
125 file_put_contents('/var/ywww/debug/phpDebug',"error elt:\n$output\n",FILE_APPEND); | 125 file_put_contents('/var/ywww/debug/phpDebug',"error elt:\n$output\n",FILE_APPEND); |
126 } | 126 } |
127 } | 127 } |