summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-02-24 13:11:26 -0800
committerelijah <elijah@riseup.net>2016-02-24 13:11:26 -0800
commited140134b5c2f4fa02c5e3622cb1979901b2d4db (patch)
tree06dc9a438f806366ed58d1519d5643f36b2a17c3
parent25204787dfa9fd3486a9244de56d92fe3d5bfb99 (diff)
fix logging error in puppet_command
-rwxr-xr-xbin/puppet_command8
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