Keep only the evaluateFullPageMapTakeover: fullReplace diagnostic log in RDEPUBPageMapReconciliationCoordinator.swift for future debugging. Simplified RDEPUBBackgroundTrace to just the log method (removed measure and debug gating). Removed all [EPUB][...], [ReadViewDemo], and [EPUB][Pagination] print statements across the project. Also includes earlier bug fixes: - Fix stale currentPageNumber in extendPartial commit - Fix pageCurl rebindVisiblePage during transition - Fix keepCurrentWindow not removing pending update from queue - Fix right-aligned text (巫鸿 bug) via avoidPageBreakInside, tail merger, and continuation paragraph normalization - Add text-indent reset for aligned blocks in CSS compatibility layer Co-Authored-By: Claude <noreply@anthropic.com>
10 lines
350 B
Swift
10 lines
350 B
Swift
import Foundation
|
|
|
|
enum RDEPUBBackgroundTrace {
|
|
|
|
static func log(_ scope: String, _ message: String) {
|
|
let threadRole = Thread.isMainThread ? "main" : "bg"
|
|
let queueLabel = String(validatingUTF8: __dispatch_queue_get_label(nil)) ?? "unknown"
|
|
print("[EPUB][\(scope)][\(threadRole)][queue=\(queueLabel)] \(message)")
|
|
}
|
|
} |