Permalink
Browse files

get rid of the instance tracking and auto flushing for now

  • Loading branch information...
1 parent 613141a commit f1f11c5b1fca80ad4220477a7b932bb8d2f0cd06 @paukul committed Nov 15, 2010
Showing with 0 additions and 11 deletions.
  1. +0 −11 lib/amqp_logging/metrics_agent.rb
@@ -5,12 +5,6 @@ module AMQPLogging
class MetricsAgent
attr_reader :fields
- at_exit { self.flush_all_instances }
-
- def self.instances
- @@instances ||= []
- end
-
def initialize
@default_fields = {
:host => Socket.gethostname.split('.').first,
@@ -20,7 +14,6 @@ def initialize
}
}
@logger_types = {}
- self.class.instances << self
reset_fields
end
@@ -70,10 +63,6 @@ def dirty?
end
private
- def self.flush_all_instances
- @@instances.each {|i| i.flush }
- end
-
def register_logger(logger, type)
@logger_types[logger] = type
@fields[:loglines][type] = []

0 comments on commit f1f11c5

Please sign in to comment.