Skip to content

Commit

Permalink
misc: core logger
Browse files Browse the repository at this point in the history
  • Loading branch information
mrFq1 committed Apr 1, 2023
1 parent 5223994 commit b963eb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ClashX/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions ClashX/General/AlphaMetaDownloader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b963eb6

Please sign in to comment.