chore: rm os_log
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user