diff options
author | Nick Hilliard <nick@foobar.org> | 2016-07-09 21:07:34 +0100 |
---|---|---|
committer | Nick Hilliard <nick@foobar.org> | 2016-07-09 21:29:42 +0100 |
commit | 3bd6151592f5b65308ff8b73e5bf939476a7ac89 (patch) | |
tree | 02c29da2aef802ed8b624a876f295977cc9f7cba | |
parent | 9e3f61aef032dfa1ee1233ceada437c00bdc697a (diff) |
puts should not be used for debugging - use Oxidized.logger.debug instead.
-rw-r--r-- | lib/oxidized/node.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb index cc1e406..9f729ed 100644 --- a/lib/oxidized/node.rb +++ b/lib/oxidized/node.rb @@ -9,9 +9,7 @@ module Oxidized attr_accessor :running, :user, :msg, :from, :stats, :retry alias :running? :running def initialize opt - if Oxidized.config.debug == true or opt[:debug] == true - puts 'resolving DNS for %s...' % opt[:name] - end + Oxidized.logger.debug 'resolving DNS for %s...' % opt[:name] @name = opt[:name] @ip = IPAddr.new(opt[:ip]).to_s rescue nil @ip ||= Resolv.new.getaddress @name |