Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

log to debug

  • Loading branch information...
commit cd56289143a5635d4b9572cd385efc0aeb6d6353 1 parent 52bf5cc
@igrigorik authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/mneme.rb
View
8 lib/mneme.rb
@@ -39,7 +39,7 @@ def response(env)
keys = [params.delete('key') || params.delete('key[]')].flatten.compact
return [400, {}, {error: 'no key specified'}] if keys.empty?
- logger.info "Processing: #{keys}"
+ logger.debug "Processing: #{keys}"
case env[Goliath::Request::REQUEST_METHOD]
when 'GET' then query_filters(keys)
@@ -76,7 +76,11 @@ def query_filters(keys)
end
def update_filters(keys)
- keys.each { |key| filter(0).insert key }
+ keys.each do |key|
+ filter(0).insert key
+ logger.debug "Inserted new key: #{key}"
+ end
+
[201, {}, '']
end
Please sign in to comment.
Something went wrong with that request. Please try again.