[3.2.1 backport] rotated_logs_size_limit not used by ConsoleLogger's FileOutput

Description

Allow rotated console logs to be cleaned up based on rotated_logs_size_limit

 

This is a value set and used by Capella (for log streaming)

https://github.com/couchbasecloud/couchbase-cloud/blob/07c8aa6e6770b0b706f63778d8c441a1c352965b/internal/syncgateways/agent/bootstrap.go#L118

 

Due to ConsoleLogger not using FileLogger directly when FileOutput is set, the code to run cleanup based on rotated_logs_size_limit never gets run or initialized for the console log output.

This results in console logs being rotated at the specified size, but never actually cleaned up. Exacerbating this issue is the fact that console logs are not compressed when rotated.

 

Attachments

1

Activity

Show:
CB Robot
October 8, 2024 at 5:03 PM

Build sync_gateway-3.2.1-9 contains sync_gateway commit 62ab29d with commit message:
[3.2.1 backport] https://couchbasecloud.atlassian.net/browse/CBG-4165#icft=CBG-4165 allow console logs to be rotated (#7094)

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Sprint

None

Fix versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created August 9, 2024 at 2:57 PM
Updated October 28, 2024 at 4:03 PM
Resolved August 23, 2024 at 4:37 PM
Instabug