Configurable Log Lines Number in Healthcheck Log Output

This commit is contained in:
Krzysztof Adamski
2023-09-12 21:06:36 +02:00
parent 8ddc484ce6
commit 892cf0e66b
5 changed files with 7 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ class Kamal::Commands::Healthcheck < Kamal::Commands::Base
end
def logs
pipe container_id, xargs(docker(:logs, "--tail", lines, "2>&1"))
pipe container_id, xargs(docker(:logs, "--tail", log_lines, "2>&1"))
end
def stop
@@ -58,7 +58,7 @@ class Kamal::Commands::Healthcheck < Kamal::Commands::Base
config.healthcheck["exposed_port"]
end
def lines
config.healthcheck["lines"]
def log_lines
config.healthcheck["log_lines"]
end
end