chore: rm os_log

This commit is contained in:
relikd
2025-10-30 18:42:02 +01:00
parent 5788b098e9
commit e2f65b540a
3 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ import Quartz // QLPreviewingController
import WebKit // WebView
import os // OSLog
// show Console logs with subsystem:de.relikd.QLApps
// show Console logs with subsystem:de.relikd.QLAppBundle
private let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "preview-plugin")
class PreviewViewController: NSViewController, QLPreviewingController {

View File

@@ -1,7 +1,7 @@
import QuickLookThumbnailing
import os // OSLog
// show Console logs with subsystem:de.relikd.QLApps
// show Console logs with subsystem:de.relikd.QLAppBundle
private let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "thumbnail-plugin")
extension QLThumbnailReply {
@@ -39,3 +39,4 @@ class ThumbnailProvider: QLThumbnailProvider {
reply.setFlavor(meta.type == .Archive ? 12 : 0) // .archive looks like "in development"
}
}

View File

@@ -175,7 +175,6 @@ func unzipFileEntry(_ path: String, _ entry: ZipEntry) -> Data? {
}
fp.seek(toFileOffset: UInt64(entry.offset))
let file_record = ZIP_LocalFile(fp.readData(ofLength: ZIP_LocalFile.LENGTH))
os_log(.debug, log: log, "header: %{public}@ vs %{public}@", String(describing: file_record), String(describing: entry))
// central directory size and local file size may differ! use local file for ground truth
let dataOffset = Int(entry.offset) + ZIP_LocalFile.LENGTH + Int(file_record.fileNameLength) + Int(file_record.extraFieldLength)