From ca74353e89b4e66908e7cc858c0596db0f424904 Mon Sep 17 00:00:00 2001 From: dkeysil Date: Fri, 9 Feb 2024 13:21:51 +0100 Subject: [PATCH] Tweak get container logs params --- clients/docker/client.go | 2 +- services/components/lifecycle/bot_logger.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/docker/client.go b/clients/docker/client.go index 1062bc26..373d8078 100644 --- a/clients/docker/client.go +++ b/clients/docker/client.go @@ -800,7 +800,7 @@ func (d *dockerClient) ListDigestReferences(ctx context.Context) (imgs []string, } const ( - defaultAgentLogAvgMaxCharsPerLine = 1000 + defaultAgentLogAvgMaxCharsPerLine = 200 ) // GetContainerLogs gets the container logs. diff --git a/services/components/lifecycle/bot_logger.go b/services/components/lifecycle/bot_logger.go index 870d147d..0263b5a2 100644 --- a/services/components/lifecycle/bot_logger.go +++ b/services/components/lifecycle/bot_logger.go @@ -50,7 +50,7 @@ func NewBotLogger( // adjust these better with auto-upgrade later const ( - defaultAgentLogTailLines = 300 + defaultAgentLogTailLines = 120 ) func (bl *botLogger) SendBotLogs(ctx context.Context, snapshotInterval time.Duration) error {