Output role along with container logs

This commit is contained in:
Lewis Buckley
2024-11-22 11:33:38 +00:00
parent b9804a07aa
commit bffe137e2b

View File

@@ -218,7 +218,7 @@ class Kamal::Cli::App < Kamal::Cli::Base
roles.each do |role|
begin
puts_by_host host, capture_with_info(*KAMAL.app(role: role, host: host).logs(timestamps: timestamps, since: since, lines: lines, grep: grep, grep_options: grep_options))
puts_by_host host, capture_with_info(*KAMAL.app(role: role, host: host).logs(timestamps: timestamps, since: since, lines: lines, grep: grep, grep_options: grep_options)), type: role
rescue SSHKit::Command::Failed
puts_by_host host, "Nothing found"
end