mirror of
https://github.com/munki/munki.git
synced 2026-01-25 00:19:39 -06:00
Fix for unified logging subsystem naming
This commit is contained in:
@@ -56,7 +56,9 @@ func munkiLog(_ message: String, logFile: String = "") {
|
||||
logPath = logNamed(MAIN_LOG_NAME)
|
||||
} else {
|
||||
logPath = logNamed(logFile)
|
||||
subsystem = "com.googlecode.munki.\((logFile as NSString).deletingPathExtension)"
|
||||
if logFile != MAIN_LOG_NAME {
|
||||
subsystem = "com.googlecode.munki.\((logFile as NSString).deletingPathExtension)"
|
||||
}
|
||||
}
|
||||
if let logData = logString.data(using: String.Encoding.utf8) {
|
||||
if !FileManager.default.fileExists(atPath: logPath) {
|
||||
|
||||
Reference in New Issue
Block a user