Revision 1601
Added by Aaron Marcuse-Kubitza over 12 years ago
bin/tapir/tapir2flat.php | ||
---|---|---|
141 | 141 |
$error_log = fopen($error_log_filename,"a"); |
142 | 142 |
fwrite($error_log, "Service responded with HTTP ".$code." code: ".$label."\n"); |
143 | 143 |
|
144 |
$successive_failures += 1; |
|
145 |
if($successive_failures >= 3) { |
|
146 |
fwrite($error_log, "3 successive failures, quitting\n"); |
|
147 |
fclose($error_log); |
|
148 |
exit; |
|
149 |
} |
|
144 |
#$successive_failures += 1;
|
|
145 |
#if($successive_failures >= 3) {
|
|
146 |
# fwrite($error_log, "3 successive failures, quitting\n");
|
|
147 |
# fclose($error_log);
|
|
148 |
# exit;
|
|
149 |
#}
|
|
150 | 150 |
|
151 | 151 |
fclose($error_log); |
152 | 152 |
|
... | ... | |
168 | 168 |
fwrite($error_log, $error->nodeValue . "\n"); |
169 | 169 |
} |
170 | 170 |
|
171 |
$successive_failures += 1; |
|
172 |
if($successive_failures >= 3) { |
|
173 |
fwrite($error_log, "3 successive failures, quitting\n"); |
|
174 |
fclose($error_log); |
|
175 |
exit; |
|
176 |
} |
|
171 |
#$successive_failures += 1;
|
|
172 |
#if($successive_failures >= 3) {
|
|
173 |
# fwrite($error_log, "3 successive failures, quitting\n");
|
|
174 |
# fclose($error_log);
|
|
175 |
# exit;
|
|
176 |
#}
|
|
177 | 177 |
|
178 | 178 |
fclose($error_log); |
179 | 179 |
|
... | ... | |
186 | 186 |
$error_log = fopen($error_log_filename,"a"); |
187 | 187 |
fwrite($error_log, "No summary node, assuming there's a missed error.\n"); |
188 | 188 |
|
189 |
$successive_failures += 1; |
|
190 |
if($successive_failures >= 3) { |
|
191 |
fwrite($error_log, "3 successive failures, quitting\n"); |
|
192 |
fclose($error_log); |
|
193 |
exit; |
|
194 |
} |
|
189 |
#$successive_failures += 1;
|
|
190 |
#if($successive_failures >= 3) {
|
|
191 |
# fwrite($error_log, "3 successive failures, quitting\n");
|
|
192 |
# fclose($error_log);
|
|
193 |
# exit;
|
|
194 |
#}
|
|
195 | 195 |
|
196 | 196 |
fclose($error_log); |
197 | 197 |
continue; |
Also available in: Unified diff
bin/tapir/tapir2flat.php: Turned off exiting after 3 successive failures, because it causes the import to abort and it doesn't seem to restart where it left off