Class: Bugsnag::Queue

Inherits:
Queue
  • Object
show all
Defined in:
lib/bugsnag/queue.rb

Constant Summary collapse

MAX_OUTSTANDING_REQUESTS =
100
STOP =
Object.new

Instance Method Summary collapse

Instance Method Details

#pushObject



8
9
10
11
12
13
14
15
# File 'lib/bugsnag/queue.rb', line 8

def push(*)
  if length > MAX_OUTSTANDING_REQUESTS
    Bugsnag.warn("Dropping notification, #{length} outstanding requests")
    return
  end
  @thread ||= create_processor
  super
end