Permalink
Browse files

debug output

  • Loading branch information...
1 parent 1571f72 commit a4ac8cf4553999d3398c0ccb96e3048647293daf @obfuscurity committed Jul 22, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/backstop/web.rb
View
@@ -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"

0 comments on commit a4ac8cf

Please sign in to comment.