Skip to content

Fix log file size limit calculation in MyDeckApplication#49

Merged
NateEaton merged 1 commit intocodex/review-spec-for-reading-progress-savingfrom
claude/reading-progress-bookmark-sync-EeiuP
Feb 10, 2026
Merged

Fix log file size limit calculation in MyDeckApplication#49
NateEaton merged 1 commit intocodex/review-spec-for-reading-progress-savingfrom
claude/reading-progress-bookmark-sync-EeiuP

Conversation

@NateEaton
Copy link
Copy Markdown
Owner

Summary

Fixed the log file size limit configuration to correctly specify 128 KB instead of 128 bytes by converting the value to bytes and adding clarifying comments.

Changes

  • Updated sizeLimit from 128 to 128 * 1024 in two logging configurations (debug and release builds)
  • Added inline comments clarifying that the value represents 128 KB in bytes
  • This ensures log files are properly rotated at 128 KB instead of the previous 128 bytes limit

Details

The original code set sizeLimit = 128, which was interpreted as 128 bytes - far too small for practical logging. The fix multiplies by 1024 to convert to the intended 128 KB limit, making log rotation behavior more reasonable and preventing excessive file churn.

https://claude.ai/code/session_01LbMyTbouPGq999Br8XVuEZ

Treessence's sizeLimit parameter is in bytes, not kilobytes.
Setting sizeLimit=128 created 128-byte files, causing immediate
rotation after 1-2 log lines. This left file 0 empty and files
1/2 with only a couple of entries each. Changed to 128*1024
(131072 bytes = 128 KB) as originally intended by the spec.

https://claude.ai/code/session_01LbMyTbouPGq999Br8XVuEZ
@NateEaton NateEaton marked this pull request as ready for review February 10, 2026 04:59
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@NateEaton NateEaton merged commit beb77a4 into codex/review-spec-for-reading-progress-saving Feb 10, 2026
1 check passed
@NateEaton NateEaton deleted the claude/reading-progress-bookmark-sync-EeiuP branch February 20, 2026 17:02
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