diff options
author | ytti <saku@ytti.fi> | 2016-06-03 09:23:52 +0300 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2016-06-03 09:23:52 +0300 |
commit | 7fd44b27500d03c42ecc2e6868da796c87abd730 (patch) | |
tree | db194c27c1fa4c8542a048e4afd8dcb0793acb27 /lib/oxidized/model/model.rb | |
parent | 779f20dd18a361b5bde51f3f11c6d048efe100a0 (diff) | |
parent | aef81bd14989797d26d349fdf1a517045f5af33c (diff) |
Merge pull request #458 from Shopify/master
Debug statements
Diffstat (limited to 'lib/oxidized/model/model.rb')
-rw-r--r-- | lib/oxidized/model/model.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/oxidized/model/model.rb b/lib/oxidized/model/model.rb index 9185d43..4a15a45 100644 --- a/lib/oxidized/model/model.rb +++ b/lib/oxidized/model/model.rb @@ -35,6 +35,7 @@ module Oxidized else @cmd[:cmd] << [_cmd, block] end + Oxidized.logger.debug "lib/oxidized/model/model.rb Added #{_cmd} to the commands list" end def cmds @cmd @@ -79,6 +80,7 @@ module Oxidized attr_accessor :input, :node def cmd string, &block + Oxidized.logger.debug "lib/oxidized/model/model.rb Executing #{string}" out = @input.cmd(string) return false unless out self.class.cmds[:all].each do |all_block| @@ -127,6 +129,7 @@ module Oxidized end def get + Oxidized.logger.debug 'lib/oxidized/model/model.rb Collecting commands\' outputs' outputs = Outputs.new procs = self.class.procs self.class.cmds[:cmd].each do |command, block| |