lib/zabbix-ruby-client/data.rb in zabbix-ruby-client-0.0.15 vs lib/zabbix-ruby-client/data.rb in zabbix-ruby-client-0.0.16

- old
+ new

@@ -1,6 +1,8 @@ -class ZabbixRubyClient +require "zabbix-ruby-client/logger" + +module ZabbixRubyClient class Data def initialize(host) @discover = {} @items = [] @@ -16,11 +18,11 @@ key, value = Plugins.loaded[plugin].send(:discover, *args) @discover[key] ||= [] @discover[key] << [ value ] end rescue Exception => e - logger.fatal "Oops" - logger.fatal e.message + Log.fatal "Oops" + Log.fatal e.message end end end def merge