From e2f65b540afc5d5d9bd5ec89cdb543bc6e199071 Mon Sep 17 00:00:00 2001 From: relikd Date: Thu, 30 Oct 2025 18:42:02 +0100 Subject: [PATCH] chore: rm os_log --- QLPreview/PreviewViewController.swift | 2 +- QLThumbnail/ThumbnailProvider.swift | 3 ++- src/Zip.swift | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/QLPreview/PreviewViewController.swift b/QLPreview/PreviewViewController.swift index ee40ca2..e56191e 100644 --- a/QLPreview/PreviewViewController.swift +++ b/QLPreview/PreviewViewController.swift @@ -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 { diff --git a/QLThumbnail/ThumbnailProvider.swift b/QLThumbnail/ThumbnailProvider.swift index c95cead..c4b8e89 100644 --- a/QLThumbnail/ThumbnailProvider.swift +++ b/QLThumbnail/ThumbnailProvider.swift @@ -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" } } + diff --git a/src/Zip.swift b/src/Zip.swift index 95b87be..3b10c35 100644 --- a/src/Zip.swift +++ b/src/Zip.swift @@ -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)