summaryrefslogtreecommitdiff
path: root/lib/oxidized/input/cli.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-06-03 09:23:52 +0300
committerytti <saku@ytti.fi>2016-06-03 09:23:52 +0300
commit7fd44b27500d03c42ecc2e6868da796c87abd730 (patch)
treedb194c27c1fa4c8542a048e4afd8dcb0793acb27 /lib/oxidized/input/cli.rb
parent779f20dd18a361b5bde51f3f11c6d048efe100a0 (diff)
parentaef81bd14989797d26d349fdf1a517045f5af33c (diff)
Merge pull request #458 from Shopify/master
Debug statements
Diffstat (limited to 'lib/oxidized/input/cli.rb')
-rw-r--r--lib/oxidized/input/cli.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/oxidized/input/cli.rb b/lib/oxidized/input/cli.rb
index 731b459..fc7f426 100644
--- a/lib/oxidized/input/cli.rb
+++ b/lib/oxidized/input/cli.rb
@@ -17,10 +17,15 @@ module Oxidized
end
def connect_cli
- @post_login.each { |command, block| block ? block.call : (cmd command) }
+ Oxidized.logger.debug "lib/oxidized/input/cli.rb: Running post_login commands at #{node.name}"
+ @post_login.each do |command, block|
+ Oxidized.logger.debug "lib/oxidized/input/cli.rb: Running post_login command: #{command.inspect}, block: #{block.inspect} at #{node.name}"
+ block ? block.call : (cmd command)
+ end
end
def disconnect_cli
+ Oxidized.logger.debug "lib/oxidized/input/cli.rb Running pre_logout commands at #{node.name}"
@pre_logout.each { |command, block| block ? block.call : (cmd command, nil) }
end