Skip to content

fix(logger): fix logger storage prune issue#23

Merged
unadlib merged 2 commits into
mainfrom
fix-logger-1
Apr 25, 2025
Merged

fix(logger): fix logger storage prune issue#23
unadlib merged 2 commits into
mainfrom
fix-logger-1

Conversation

@unadlib

@unadlib unadlib commented Apr 25, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@unadlib unadlib requested a review from Copilot April 25, 2025 07:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request fixes the logger storage prune issue by adjusting how the cutoff time is determined during log pruning.

  • Changed the subtraction logic from using "sizeOverBy" to using "size".
  • Removed the early termination via an exception, which now results in iterating over all log entries.

Comment thread packages/logger/src/transports/storage.ts
@unadlib unadlib merged commit 63dd0b6 into main Apr 25, 2025
3 checks passed
@unadlib unadlib deleted the fix-logger-1 branch April 25, 2025 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants