From bffe137e2bf006e8f661f312d19e5cff50959fda Mon Sep 17 00:00:00 2001 From: Lewis Buckley Date: Fri, 22 Nov 2024 11:33:38 +0000 Subject: [PATCH] Output role along with container logs --- lib/kamal/cli/app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kamal/cli/app.rb b/lib/kamal/cli/app.rb index 74b7b4df..ed51b5c3 100644 --- a/lib/kamal/cli/app.rb +++ b/lib/kamal/cli/app.rb @@ -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