Skip to content

Commit

Permalink
fix: update usage of DDLog
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengchen committed Sep 5, 2023
1 parent 5b8911f commit 87c4260
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ClashX/Basic/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ class Logger {
private func logToFile(msg: String, level: ClashLogLevel) {
switch level {
case .debug, .silent:
DDLogDebug(msg)
DDLogDebug(DDLogMessageFormat(stringLiteral: msg))
case .error:
DDLogError(msg)
DDLogError(DDLogMessageFormat(stringLiteral: msg))
case .info:
DDLogInfo(msg)
DDLogInfo(DDLogMessageFormat(stringLiteral: msg))
case .warning:
DDLogWarn(msg)
DDLogWarn(DDLogMessageFormat(stringLiteral: msg))
case .unknow:
DDLogWarn(msg)
DDLogWarn(DDLogMessageFormat(stringLiteral: msg))
}
}

Expand Down

0 comments on commit 87c4260

Please sign in to comment.