From b963eb624898869ac2e8225f2e3dbe392168bf4e Mon Sep 17 00:00:00 2001 From: mrFq1 <1xxbx0il0@mozmail.com> Date: Sat, 1 Apr 2023 22:13:59 +0800 Subject: [PATCH] misc: core logger --- ClashX/AppDelegate.swift | 3 +++ ClashX/General/AlphaMetaDownloader.swift | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ClashX/AppDelegate.swift b/ClashX/AppDelegate.swift index 65b23a113..f6c0b4940 100644 --- a/ClashX/AppDelegate.swift +++ b/ClashX/AppDelegate.swift @@ -626,6 +626,9 @@ class AppDelegate: NSObject, NSApplicationDelegate { return nil } + Logger.log("test core path: \(path)") + Logger.log("-v out: \(out)") + let outs = out .split(separator: "\n") .first { diff --git a/ClashX/General/AlphaMetaDownloader.swift b/ClashX/General/AlphaMetaDownloader.swift index 6d7d39913..52145bc5c 100644 --- a/ClashX/General/AlphaMetaDownloader.swift +++ b/ClashX/General/AlphaMetaDownloader.swift @@ -140,6 +140,8 @@ class AlphaMetaDownloader: NSObject { let cachePath = Paths.tempPath().appending("/\(UUID().uuidString).newcore") try gzData.gunzipped().write(to: .init(fileURLWithPath: cachePath)) + + Logger.log("save alpha core in \(cachePath)") guard let version = ad.testMetaCore(cachePath)?.version else { resolver.reject(errors.testFailed)