Skip to content

Commit

Permalink
debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
obfuscurity committed Jul 22, 2012
1 parent 1571f72 commit a4ac8cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/backstop/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ def sockets
halt 400, "missing fields" unless (data['repository'] && data['commits'])
data["source"] = "github"
data["ref"].gsub!(/\//, ".")
p data
data["commits"].each do |commit|
measure_time = DateTime.parse(commit["timestamp"]).strftime("%s")
s = sockets.sample
p "#{data['source']}.#{data['ref']}.#{commit['id']} 1 #{measure_time}"
s.puts "#{data['source']}.#{data['ref']}.#{commit['id']} 1 #{measure_time}"
end
"ok"
Expand Down

0 comments on commit a4ac8cf

Please sign in to comment.