Skip to content

chore: post-audit cleanup — quieter per-file log, dated timestamps, EN contract, fix TCP javadoc#65

Merged
VirusAlex merged 1 commit into
mainfrom
chore/v040-cleanup-info
May 1, 2026
Merged

chore: post-audit cleanup — quieter per-file log, dated timestamps, EN contract, fix TCP javadoc#65
VirusAlex merged 1 commit into
mainfrom
chore/v040-cleanup-info

Conversation

@VirusAlex
Copy link
Copy Markdown
Owner

Summary

Picks five LOW/INFO items from the v1.0.0 audit follow-up list. No production-logic change; ergonomics + docs only.

Puller.pullFile log demoted to DEBUG

Pre-v0.4.0 every per-file pull emitted an INFO line. On a 1000-file transfer that's 1k+ INFO lines drowning out the job-lifecycle events an operator actually wants to scan. Now DEBUG — silent by default, opt-in via -Dlogback.level.dev.netcopy=DEBUG.

logback.xml — date in timestamp

- %d{HH:mm:ss.SSS} %-5level [%thread] %logger{20} - %msg%n
+ %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] %logger{20} - %msg%n

A grep across log archives spanning days no longer confuses 23:55:01 yesterday with 23:55:01 today. Container drivers stamp lines themselves but those stamps don't survive kubectl logs --previous / journalctl exports / GitHub Actions UI.

TcpConnectionHandler class javadoc rewritten

The javadoc still described the v1 two-pass behaviour even though SERVER_PROTO_VER = 2 has been default since v0.3.0 and v2 single-pass is what nearly every client takes. Rewrote to describe v2 first (default), v1 second (legacy). Anyone reading the code now gets the actual flow.

tasks/contracts/data-formats.md fully English

The frozen-contract document was bilingual (Russian + code). Public v1.0 OSS doc should be English-only. Translated ~7 remaining Russian spots (file header, type-enum aside, chunks.bitmap section, WS direction headers, frame-layout intro, max-payload note, ERR codes preamble). No semantic change.

build.log removed from worktree

The stray 2 MiB build.log at the repo root was already caught by .gitignore via *.log so it never made it into git history; just polluting local ls. Removed.

Test plan

  • Local mvn compile + mvn test -Dtest=ArchitectureTest (8/8 pass).
  • CI green.

🤖 Generated with Claude Code

timestamps, fix stale TCP javadoc

Picks five LOW/INFO items off the v1.0.0 audit follow-up list. No
behaviour change for production logic; doc + ergonomics only.

Per-file log demoted to DEBUG (Puller.pullFile)
- Pre-v0.4.0 every per-file pull emitted an INFO line `pullFile relPath=...`.
  On a 1000-file transfer that's 1k+ INFO lines, drowning out the
  job-lifecycle events an operator actually wants to skim. Now DEBUG —
  visible at ./mvnw -B test or with -Dlogback.level.dev.netcopy=DEBUG,
  silent by default.

logback.xml — date in timestamp
- Pattern: %d{HH:mm:ss.SSS} -> %d{yyyy-MM-dd HH:mm:ss.SSS}. A grep across
  log archives spanning days no longer mistakes 23:55:01 yesterday for
  23:55:01 today. Container log consumers stamp lines themselves but
  those stamps don't survive `kubectl logs --previous` / journalctl
  exports / GH Actions UI.

TcpConnectionHandler class javadoc rewritten
- The existing javadoc described the v1 two-pass behaviour
  ("Once the digest is known we write the DataHead, then we re-read
   the range and ship it") even though SERVER_PROTO_VER=2 has been the
  default since v0.3.0 and the v2 single-pass path is what nearly every
  client takes. Rewrote to describe v2 first (default), v1 second
  (legacy / version-negotiation backstop). Anyone reading the code now
  gets the actual flow.

data-formats.md fully English
- The frozen-contract document was bilingual (Russian + code). Public
  v1.0 OSS doc should be English-only. Translated the remaining Russian
  sentences (~7 spots: file header, type-enum aside, chunks.bitmap
  section, WS direction headers, frame-layout intro, max-payload note,
  ERR codes preamble). No content change.

build.log
- Removed the stray 2 MiB build.log from the worktree root. Already
  caught by .gitignore via *.log so it never made it into git history;
  was just polluting `ls`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@VirusAlex VirusAlex merged commit d0fe810 into main May 1, 2026
1 check passed
@VirusAlex VirusAlex deleted the chore/v040-cleanup-info branch May 1, 2026 07:54
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