lib/bolt/config.rb in bolt-2.26.0 vs lib/bolt/config.rb in bolt-2.27.0

- old
+ new

@@ -62,11 +62,11 @@ logs << { debug: "Loaded configuration from #{configfile}" } c end data = load_defaults(project).push( - filepath: project.config_file, + filepath: configfile, data: conf, logs: logs, deprecations: [] ) @@ -342,9 +342,17 @@ target = target[5..-1] if target.start_with?('file:') 'file:' + File.expand_path(target, @project.path) end private def update_logs(logs) + begin + if logs['bolt-debug.log'] && logs['bolt-debug.log'] != 'disable' + FileUtils.touch(File.expand_path('bolt-debug.log', @project.path)) + end + rescue StandardError + logs.delete('bolt-debug.log') + end + logs.each_with_object({}) do |(key, val), acc| # Remove any disabled logs next if val == 'disable' name = normalize_log(key)