Changeset 11876
- Timestamp:
- 2006-05-29T16:36:29+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cic-hcap/perllib/plugins/CICPlug.pm
r11875 r11876 30 30 use DBI; 31 31 use strict; 32 no strict 'refs'; 32 33 33 34 … … 201 202 my $self = shift(@_); 202 203 my $dbh = shift(@_); 204 my $fail_log_handle = $self->{'failhandle'}; 203 205 204 206 # Prepare SQL statement for getting everything from the Institution table … … 269 271 print STDERR "<ProcessingError n='Institution $institution_id' p='CICPlug' r='No best image'>\n" if ($self->{'gli'}); 270 272 print STDERR "Error: Institution $institution_id -- No best image.\n"; 273 print $fail_log_handle "Error: Institution $institution_id -- No best image.\n"; 271 274 $self->{'num_not_processed'}++; 272 275 next; … … 281 284 print STDERR "<ProcessingError n='Institution $institution_id' p='CICPlug' r='Could not match best image $institution_best_place_image_name to a file'>\n" if ($self->{'gli'}); 282 285 print STDERR "Error: Institution $institution_id -- Could not match best image $institution_best_place_image_name to a file.\n"; 286 print $fail_log_handle "Error: Institution $institution_id -- Could not match best image $institution_best_place_image_name to a file.\n"; 283 287 $self->{'num_not_processed'}++; 284 288 next; … … 321 325 print STDERR "<ProcessingError n='$institution_campus_plan_pdf_file_path' p='CICPlug' r='Does not exist'>\n" if ($self->{'gli'}); 322 326 print STDERR "Error: File $institution_campus_plan_pdf_file_path does not exist.\n"; 327 print $fail_log_handle "Error: File $institution_campus_plan_pdf_file_path does not exist.\n"; 323 328 } 324 329 } … … 365 370 my $self = shift(@_); 366 371 my $dbh = shift(@_); 372 my $fail_log_handle = $self->{'failhandle'}; 367 373 368 374 # Prepare SQL statement for getting everything from the Place table … … 450 456 print STDERR "<ProcessingError n='Place $place_id' p='CICPlug' r='Missing place name'>\n" if ($self->{'gli'}); 451 457 print STDERR "Error: Place $place_id -- Missing place name.\n"; 458 print $fail_log_handle "Error: Place $place_id -- Missing place name.\n"; 452 459 $self->{'num_not_processed'}++; 453 460 next; … … 459 466 print STDERR "<ProcessingError n='Place $place_id' p='CICPlug' r='Missing place type'>\n" if ($self->{'gli'}); 460 467 print STDERR "Error: Place $place_id -- Missing place type.\n"; 468 print $fail_log_handle "Error: Place $place_id -- Missing place type.\n"; 461 469 $self->{'num_not_processed'}++; 462 470 next; … … 473 481 print STDERR "<ProcessingError n='Place $place_id' p='CICPlug' r='Missing construction date'>\n" if ($self->{'gli'}); 474 482 print STDERR "Error: Place $place_id -- Missing construction date.\n"; 483 print $fail_log_handle "Error: Place $place_id -- Missing construction date.\n"; 475 484 $self->{'num_not_processed'}++; 476 485 next; … … 529 538 print STDERR "<ProcessingError n='Place $place_id' p='CICPlug' r='Missing function'>\n" if ($self->{'gli'}); 530 539 print STDERR "Error: Place $place_id -- Missing function.\n"; 540 print $fail_log_handle "Error: Place $place_id -- Missing function.\n"; 531 541 next; 532 542 } … … 535 545 print STDERR "<ProcessingError n='Place $place_id' p='CICPlug' r='Missing function year'>\n" if ($self->{'gli'}); 536 546 print STDERR "Error: Place $place_id -- Missing function year.\n"; 547 print $fail_log_handle "Error: Place $place_id -- Missing function year.\n"; 537 548 next; 538 549 } … … 614 625 my $self = shift(@_); 615 626 my $dbh = shift(@_); 627 my $fail_log_handle = $self->{'failhandle'}; 616 628 617 629 # Prepare SQL statement for getting all the Architects from the Place table … … 735 747 my $self = shift(@_); 736 748 my ($doc_obj, $place_image_location, $place_image_size) = (@_); 749 my $fail_log_handle = $self->{'failhandle'}; 737 750 738 751 # Don't bother with empty values … … 751 764 print STDERR "<ProcessingError n='$place_image_file_path' p='CICPlug' r='Does not exist'>\n" if ($self->{'gli'}); 752 765 print STDERR "Error: Image $place_image_file_path does not exist.\n"; 766 print $fail_log_handle "Error: Image $place_image_file_path does not exist.\n"; 753 767 return; 754 768 } … … 806 820 print STDERR "<ProcessingError n='$image_file_path' p='CICPlug' r='Could not be created'>\n" if ($self->{'gli'}); 807 821 print STDERR "Error: Image $image_file_path could not be created.\n"; 822 print $fail_log_handle "Error: Image $image_file_path could not be created.\n"; 808 823 return; 809 824 }
Note:
See TracChangeset
for help on using the changeset viewer.