diff options
author | elijah <elijah@riseup.net> | 2016-02-24 13:11:26 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-02-24 13:11:26 -0800 |
commit | ed140134b5c2f4fa02c5e3622cb1979901b2d4db (patch) | |
tree | 06dc9a438f806366ed58d1519d5643f36b2a17c3 /bin/puppet_command | |
parent | 25204787dfa9fd3486a9244de56d92fe3d5bfb99 (diff) |
fix logging error in puppet_command
Diffstat (limited to 'bin/puppet_command')
-rwxr-xr-x | bin/puppet_command | 8 |
1 files changed, 5 insertions, 3 deletions
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 |