basic logging for the command patterns that came in request.

This commit is contained in:
Kunal Dabir 2015-02-13 17:05:54 +05:30
parent 83c46501e0
commit 357f64967d
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ HEADERS_FOR_SHELL = {'Content-Type' => 'text/plain'}
map '/dq' do
run Proc.new { |env|
commands_to_check = Rack::Request.new(env).params[:check.to_s] || "core/*"
puts "processing: [#{commands_to_check}]"
[200, HEADERS_FOR_SHELL, [build(commands_to_check)]]
}
end