lib/r2-oas/task_logging.rb in r2-oas-0.3.4 vs lib/r2-oas/task_logging.rb in r2-oas-0.4.0
- old
+ new
@@ -18,13 +18,13 @@
end
end
private
- def start
- logger.info '[R2-OAS] start'
+ def start(initial = '[R2-OAS]')
+ logger.info "#{initial} start"
yield
- logger.info '[R2-OAS] end'
+ logger.info "#{initial} end"
end
def logger
R2OAS.logger
end