lib/dumper/agent.rb in dumper-0.3.0 vs lib/dumper/agent.rb in dumper-0.4.0
- old
+ new
@@ -20,10 +20,10 @@
end
def initialize(options = {})
log 'app_key is missing' if options[:app_key].blank?
- @stack = Dumper::Stack.new
+ @stack = Dumper::Stack.new(options)
@api_base = options[:api_base] || 'http://dumper.io'
@app_key = options[:app_key]
@app_env = @stack.rails_env
@app_name = ObjectSpace.each_object(Rails::Application).first.class.name.split("::").first
logger.level = stdout_logger.level = options[:loglevel] if options[:loglevel]