Changeset 1754

Show
Ignore:
Timestamp:
08/20/08 11:41:30 (3 months ago)
Author:
dbryson
Message:

fine tuned the bee controller

Files:

Legend:

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

    r1746 r1754  
    11# Talks exclusively to the Worker Bees 
    22class BeeController < ApplicationController 
    3   include WorkerBeeAuthorization 
    43  before_filter :verify_signed_request 
    54   
     5  # Get the latest History URLS 
    66  def latest 
    77    data = HistoryUrl.fetch_latest(params[:id]) 
     
    1212    raw_data = request.raw_post 
    1313    begin 
    14       urls = ActiveSupport::JSON.decode(d
     14      urls = ActiveSupport::JSON.decode(raw_data
    1515      work = build_hash_for_drone(urls) 
    1616      DroneJob.insert(work) 
    17     rescue 
     17    rescue Exception => e 
     18      logger.error("Bee error adding work: #{e.message}") 
    1819    end 
    1920    render :json => ["ok"]