lib/appsignal.rb in appsignal-0.10.2 vs lib/appsignal.rb in appsignal-0.10.3
- old
+ new
@@ -144,11 +144,11 @@
@logger.formatter = Logger::Formatter.new
else
@logger = Logger.new($stdout)
@logger.formatter = lambda do |severity, datetime, progname, msg|
"appsignal: #{msg}\n"
- end
+ end
end
@logger.level = Logger::INFO
@logger << @in_memory_log.string if @in_memory_log
end
@@ -157,10 +157,11 @@
yield @post_processing_chain if block_given?
@post_processing_chain
end
def active?
- config && config.active?
+ config && config.active? &&
+ agent && agent.active?
end
def is_ignored_exception?(exception)
Appsignal.config[:ignore_exceptions].include?(exception.class.name)
end