Problem
The codebase uses print() statements for logging instead of structured logging.
Examples Found
// AuthenticationManager.swift
print("Error getting public key data: \(error!.takeRetainedValue() as Error)")
// ArkavoMessageRouter.swift
print("Error: \(error)")
// Multiple files
print("Debug: ...")
Issues
- No log levels - Cannot filter by severity
- No context - Missing file, line, function info
- Production exposure - Sensitive data may be logged
- No aggregation - Cannot collect logs for debugging
Note
A SecureLogger.swift utility exists but is not consistently used.
Solution
- Audit all
print() statements
- Replace with
SecureLogger calls
- Add appropriate log levels (debug, info, warning, error)
- Ensure sensitive data is redacted in production
Acceptance Criteria
Problem
The codebase uses
print()statements for logging instead of structured logging.Examples Found
Issues
Note
A
SecureLogger.swiftutility exists but is not consistently used.Solution
print()statementsSecureLoggercallsAcceptance Criteria
print()statements in production code