Changeset 1624

Show
Ignore:
Timestamp:
06/13/08 16:01:57 (3 months ago)
Author:
kindlund
Message:

Updated API to log/ignore URLs that fail validation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • hive/trunk/data_webapp/app/controllers/hc_database_controller.rb

    r1619 r1624  
    113113          if $!.to_s.index('Duplicate entry').nil? 
    114114            # If we encounter something other than a "Duplicate entry" exception, then 
    115             # propagate the error. 
    116             raise $!.to_s 
     115            # log the error. 
     116            logger.warn "insert_pending_url(): Unable to save URL - " + $!.to_s 
     117            return 
    117118          end 
    118119          logger.warn "insert_pending_url(): Collision on URL: (" + url.to_s + ") - retrying insert."