lib/bolt/outputter/logger.rb in bolt-3.12.0 vs lib/bolt/outputter/logger.rb in bolt-3.13.0

- old
+ new

@@ -22,10 +22,12 @@ log_plan_finish(event) when :container_start log_container_start(event) when :container_finish log_container_finish(event) + when :log + log_message(**event) end end def log_step_start(description:, targets:, **_kwargs) target_str = if targets.length > 5 @@ -62,9 +64,13 @@ if result.success? @logger.info("Finished: run container '#{result.object}' succeeded.") else @logger.info("Finished: run container '#{result.object}' failed.") end + end + + def log_message(level:, message:, **_kwargs) + @logger.send(level, message) end end end end