lib/logjam_agent/request.rb in logjam_agent-0.13.2 vs lib/logjam_agent/request.rb in logjam_agent-0.13.3
- old
+ new
@@ -76,10 +76,10 @@
((@fields[:exceptions] ||= []) << exception).uniq!
end
end
def forward
- return if @ignored
+ return if @ignored || LogjamAgent.disabled
engine = @fields.delete(:engine)
# puts @fields.inspect
@forwarder.forward(LogjamAgent.encode_payload(@fields), :engine => engine)
rescue Exception => e
handle_forwarding_error(e)