From ed140134b5c2f4fa02c5e3622cb1979901b2d4db Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 24 Feb 2016 13:11:26 -0800 Subject: fix logging error in puppet_command --- bin/puppet_command | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin/puppet_command') diff --git a/bin/puppet_command b/bin/puppet_command index 702c8cbd..eb3cd0b9 100755 --- a/bin/puppet_command +++ b/bin/puppet_command @@ -64,9 +64,11 @@ def log(str, *args) str = str.strip $stdout.puts str $stdout.flush - $logger.info(str) - if args.include? :summary - $summary_logger.info(str) + if $logger + $logger.info(str) + if args.include? :summary + $summary_logger.info(str) + end end end -- cgit v1.2.3