mirror of
https://github.com/munki/munki.git
synced 2026-04-24 13:59:56 -05:00
Drop log filename path extension ('.log') when making a subsystem name for unified logging
This commit is contained in:
@@ -54,7 +54,7 @@ func munkiLog(_ message: String, logFile: String = "") {
|
||||
logPath = mainLogPath()
|
||||
} else {
|
||||
logPath = logNamed(logFile)
|
||||
subsystem = "com.googlecode.munki.\(logFile)"
|
||||
subsystem = "com.googlecode.munki.\((logFile as NSString).deletingPathExtension)"
|
||||
}
|
||||
if let logData = logString.data(using: String.Encoding.utf8) {
|
||||
if !pathExists(logPath) {
|
||||
|
||||
Reference in New Issue
Block a user