Switch to just last 100 log lines for now

This commit is contained in:
David Heinemeier Hansson
2023-01-12 16:00:21 +01:00
parent d554ae8500
commit 1f06b1ff94
4 changed files with 9 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ class Mrsk::Commands::App < Mrsk::Commands::Base
end
def logs
[ "docker ps -q #{service_filter.join(" ")} | xargs docker logs -f" ]
[ "docker ps -q #{service_filter.join(" ")} | xargs docker logs -n 100 -t" ]
end
def exec(*command, interactive: false)

View File

@@ -24,7 +24,7 @@ class Mrsk::Commands::Traefik < Mrsk::Commands::Base
end
def logs
docker :logs, "traefik"
docker :logs, "traefik", "-n", "100", "-t"
end
def remove_container