Skip to content

chore: strip debug artifacts — replace print() with FileLogger#76

Open
rdemeritt wants to merge 1 commit into
mainfrom
chore/strip-debug-artifacts
Open

chore: strip debug artifacts — replace print() with FileLogger#76
rdemeritt wants to merge 1 commit into
mainfrom
chore/strip-debug-artifacts

Conversation

@rdemeritt

Copy link
Copy Markdown
Member

Summary

  • Replace 2 bare print() calls in AudioCaptureService.swift with FileLogger.shared.log(.error, ...) so errors land in the app log file instead of stdout
  • #if DEBUG migrator.eraseDatabaseOnSchemaChange = true in Database.swift — correctly guarded, left in place (dev-only, stripped from release builds automatically)
  • Logger.debug() calls across the codebase — OS Logger .debug level is a no-op in release builds; no action needed
  • Ollama localhost default URL — intentional for a local-first app; not a debug artifact

Audit scope

84 Swift files scanned. No assert/assertionFailure, NSLog, debugPrint, TODO/FIXME, or hardcoded test values found.

Test plan

  • Build succeeds (already verified: Build complete! 3.31s)
  • CI green

Two bare print() calls on error paths replaced with FileLogger.shared.log(.error)
so errors land in the app log file rather than stdout.
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.

1 participant