lib/rspec/terraform/logging.rb in rspec-terraform-0.5.0.pre.8 vs lib/rspec/terraform/logging.rb in rspec-terraform-0.5.0.pre.9
- old
+ new
@@ -30,20 +30,20 @@
ArgumentError,
'File logging requested but no file path provided'
)
end
- opts.merge(streams: streams, level: level)
+ opts.merge(streams:, level:)
end
def resolve_logger(logger, streams, devices, level)
return logger if logger
log_devices = []
log_devices << devices[:file] if streams.include?(:file)
log_devices << devices[:stdout] if streams.include?(:standard)
- Logger.new(multi_io(log_devices), level: level)
+ Logger.new(multi_io(log_devices), level:)
end
def resolve_stdout(stdout, streams, devices)
return stdout if stdout