- remove some extra printing

This commit is contained in:
Jordan Sissel 2011-06-09 11:23:13 -07:00
parent db2637505a
commit 96d28429c8
5 changed files with 8 additions and 8 deletions

View file

@ -123,7 +123,7 @@ class LogStash::Web::Server < Sinatra::Base
results = @backend.histogram(params[:q], field, interval, async=false)
p :results => results
#p :results => results
if results.error?
status 500
body({ "error" => results.error_message }.to_json)
@ -132,7 +132,7 @@ class LogStash::Web::Server < Sinatra::Base
begin
json = results.results.to_json
p :json => json
#p :json => json
content_type :json
status 200
body json

View file

@ -5,7 +5,7 @@ class LogStash::Web::Server < Sinatra::Base
status 500 if @error
@results = results
p :got => results
#p :got => results
params[:format] ||= "html"
case params[:format]
@ -42,7 +42,7 @@ class LogStash::Web::Server < Sinatra::Base
)
@backend.search(query) do |results|
p :got => results
#p :got => results
begin
result_callback.call results
rescue => e

View file

@ -15,7 +15,7 @@ class LogStash::Web::Server < Sinatra::Base
def static_file
# request.path_info is the full path of the request.
path = File.join(File.dirname(__FILE__), "..", "public", *request.path_info.split("/"))
p :static => path
#p :static => path
if File.exists?(path)
ext = path.split(".").last
case ext

View file

@ -9,9 +9,9 @@ class LogStash::Web::Runner
def run(args)
jarpath = File.join(File.dirname(__FILE__), "..", "..", "..", "vendor",
"**", "*.jar")
p :jarpath => jarpath
#p :jarpath => jarpath
Dir[jarpath].each do |jar|
p :jar => jar
#p :jar => jar
require jar
end

View file

@ -80,7 +80,7 @@ class LogStash::Web::Server < Sinatra::Base
options[:type] = query.to_sym
end
p :web_es_config => options
#p :web_es_config => options
@backend = LogStash::Search::ElasticSearch.new(options)
when "twitter"
require "logstash/search/twitter"