mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-02 05:52:18 +00:00
Decrease max log age to 1 day
Reuse log filenames in report issue.
This commit is contained in:
parent
d0077e03f1
commit
7ff8dd4fc9
@ -103,10 +103,10 @@ private extension Issue {
|
|||||||
var list: [MailComposerView.Attachment] = []
|
var list: [MailComposerView.Attachment] = []
|
||||||
let mimeType = Strings.Unlocalized.Issues.attachmentMimeType
|
let mimeType = Strings.Unlocalized.Issues.attachmentMimeType
|
||||||
if let appLog {
|
if let appLog {
|
||||||
list.append(.init(data: appLog, mimeType: mimeType, fileName: Strings.Unlocalized.Issues.appLogFilename))
|
list.append(.init(data: appLog, mimeType: mimeType, fileName: Constants.shared.log.appPath))
|
||||||
}
|
}
|
||||||
if let tunnelLog {
|
if let tunnelLog {
|
||||||
list.append(.init(data: tunnelLog, mimeType: mimeType, fileName: Strings.Unlocalized.Issues.tunnelLogFilename))
|
list.append(.init(data: tunnelLog, mimeType: mimeType, fileName: Constants.shared.log.tunnelPath))
|
||||||
}
|
}
|
||||||
return list
|
return list
|
||||||
}
|
}
|
||||||
|
@ -70,10 +70,10 @@ private extension Issue {
|
|||||||
var items: [Any] {
|
var items: [Any] {
|
||||||
var list: [Any] = []
|
var list: [Any] = []
|
||||||
list.append(body)
|
list.append(body)
|
||||||
if let appLog, let url = appLog.toTemporaryURL(withFilename: Strings.Unlocalized.Issues.appLogFilename) {
|
if let appLog, let url = appLog.toTemporaryURL(withFilename: Constants.shared.log.appPath) {
|
||||||
list.append(url)
|
list.append(url)
|
||||||
}
|
}
|
||||||
if let tunnelLog, let url = tunnelLog.toTemporaryURL(withFilename: Strings.Unlocalized.Issues.tunnelLogFilename) {
|
if let tunnelLog, let url = tunnelLog.toTemporaryURL(withFilename: Constants.shared.log.tunnelPath) {
|
||||||
list.append(url)
|
list.append(url)
|
||||||
}
|
}
|
||||||
return list
|
return list
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
"maxLevel": 3,
|
"maxLevel": 3,
|
||||||
"maxSize": 500000,
|
"maxSize": 500000,
|
||||||
"maxBufferedLines": 5000,
|
"maxBufferedLines": 5000,
|
||||||
"maxAge": 259200
|
"maxAge": 86400
|
||||||
},
|
},
|
||||||
"formatter": {
|
"formatter": {
|
||||||
"timestamp": "HH:mm:ss",
|
"timestamp": "HH:mm:ss",
|
||||||
|
@ -92,10 +92,6 @@ extension Strings {
|
|||||||
public static let subject = "\(appName) - Report issue"
|
public static let subject = "\(appName) - Report issue"
|
||||||
|
|
||||||
public static let attachmentMimeType = "text/plain"
|
public static let attachmentMimeType = "text/plain"
|
||||||
|
|
||||||
public static let appLogFilename = "app.log"
|
|
||||||
|
|
||||||
public static let tunnelLogFilename = "tunnel.log"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static let appName = "Passepartout"
|
public static let appName = "Passepartout"
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 33ba8113401dd84428d82c64edbcbe6f60752599
|
Subproject commit d9b51757ece45c294a0d29f11ca8281c03a983a9
|
Loading…
Reference in New Issue
Block a user