debugged-ruby 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/debugged-ruby/version.rb +1 -1
- data/lib/debugged-ruby.rb +2 -0
- metadata +1 -1
data/lib/debugged-ruby.rb
CHANGED
@@ -41,6 +41,7 @@ module Debugged
|
|
41
41
|
time = Time.now.utc.to_i
|
42
42
|
hash = Digest::SHA1.base64digest @@api_key.to_s+name+"ruby"+time.to_s
|
43
43
|
|
44
|
+
@@log.debug(hash + " - sending report to Debugged")
|
44
45
|
report =
|
45
46
|
{
|
46
47
|
"created_at" => time.to_i,
|
@@ -70,6 +71,7 @@ module Debugged
|
|
70
71
|
begin
|
71
72
|
http = EM::HttpRequest.new(url).post :body => report.to_json, :head => {'authorization' => [@@api_key, 'pass']}
|
72
73
|
http.callback {
|
74
|
+
@@log.debug(hash + " - sent report to Debugged")
|
73
75
|
pending -= 1
|
74
76
|
EM.stop if pending < 1
|
75
77
|
}
|