hubble 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/hubble.rb +1 -33
- data/lib/hubble/backend/memory.rb +2 -2
- data/lib/hubble/version.rb +1 -1
- metadata +3 -3
data/lib/hubble.rb
CHANGED
@@ -134,7 +134,7 @@ module Hubble
|
|
134
134
|
|
135
135
|
def report!(e, other = {})
|
136
136
|
data = squash_context(exception_info(e), other)
|
137
|
-
|
137
|
+
backend.report(data)
|
138
138
|
rescue Object => i
|
139
139
|
# don't fail for any reason
|
140
140
|
logger.debug "Hubble: #{data.inspect}" rescue nil
|
@@ -206,16 +206,6 @@ module Hubble
|
|
206
206
|
res
|
207
207
|
end
|
208
208
|
|
209
|
-
# Send the exception data to the relay service using
|
210
|
-
# a non-waiting cast call.
|
211
|
-
#
|
212
|
-
# data - Hash of string key => string value pairs.
|
213
|
-
#
|
214
|
-
# Returns nothing.
|
215
|
-
def cast(data)
|
216
|
-
backend.report(data)
|
217
|
-
end
|
218
|
-
|
219
209
|
# Load and initialize the exception reporting backend as specified by
|
220
210
|
# the 'backend' configuration option.
|
221
211
|
#
|
@@ -284,26 +274,4 @@ module Hubble
|
|
284
274
|
end
|
285
275
|
|
286
276
|
extend self
|
287
|
-
|
288
|
-
##
|
289
|
-
# Deprecated
|
290
|
-
|
291
|
-
def service
|
292
|
-
warn "Hubble.service is deprecated. #{caller[0]}"
|
293
|
-
@service ||= BERTRPC::Service.new(config['host'], config['port'])
|
294
|
-
end
|
295
|
-
|
296
|
-
alias svc service
|
297
|
-
|
298
|
-
def fail
|
299
|
-
raise "failure failure!"
|
300
|
-
end
|
301
|
-
|
302
|
-
def default_options
|
303
|
-
context[0]
|
304
|
-
end
|
305
|
-
|
306
|
-
def default_options=(hash)
|
307
|
-
context[0] = hash
|
308
|
-
end
|
309
277
|
end
|
data/lib/hubble/version.rb
CHANGED
metadata
CHANGED