Navigation Menu

Skip to content

Commit

Permalink
Remove trace log from "add" handler
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jan 6, 2015
1 parent acc6574 commit c8b2da8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/droonga/plugins/crud.rb
Expand Up @@ -84,14 +84,11 @@ def initialize(column, table, request)
end

def handle(message)
logger.trace("handle: start")
process_add(message.request)
logger.trace("handle: done")
end

private
def process_add(request)
logger.trace("process_add: start")
raise MissingTableParameter.new unless request.include?("table")

table = @context[request["table"]]
Expand All @@ -104,13 +101,10 @@ def process_add(request)
end

add_record(table, request)

logger.trace("process_add: done")
true
end

def add_record(table, request)
logger.trace("add_record: start")
record = nil
if table.support_key?
key = normalize_record_key(request["key"], table)
Expand All @@ -132,7 +126,6 @@ def add_record(table, request)
raise UnknownColumn.new(column, request["table"], request)
end
end
logger.trace("add_record: done")
end

def normalize_record_key(key, table)
Expand All @@ -146,10 +139,6 @@ def normalize_record_key(key, table)
key.to_s
end
end

def log_tag
"add-handler"
end
end

define_single_step do |step|
Expand Down

0 comments on commit c8b2da8

Please sign in to comment.