mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-04 19:29:41 +00:00
Add operation column that says what the app was actually doing.
This commit is contained in:
1 parent
21907eef6e
commit
3587b5eba0
6 files changed
+39
-25
No files matched your search
@@ -14,13 +14,15 @@ public struct ErrorLogEntry: Sendable {
|
||||
public let date: Date
|
||||
public let sourceName: String
|
||||
public let sourceID: Int // 0-99 reserved for AccountType.rawValue. 100 and up for other components.
|
||||
public let operation: String
|
||||
public let errorMessage: String
|
||||
|
||||
public init(id: Int, date: Date, sourceName: String, sourceID: Int, errorMessage: String) {
|
||||
public init(id: Int, date: Date, sourceName: String, sourceID: Int, operation: String, errorMessage: String) {
|
||||
self.id = id
|
||||
self.date = date
|
||||
self.sourceName = sourceName
|
||||
self.sourceID = sourceID
|
||||
self.operation = operation
|
||||
self.errorMessage = errorMessage
|
||||
}
|
||||
|
||||
@@ -29,6 +31,7 @@ public struct ErrorLogEntry: Sendable {
|
||||
static let date = "date"
|
||||
static let sourceName = "sourceName"
|
||||
static let sourceID = "sourceID"
|
||||
static let operation = "operation"
|
||||
static let errorMessage = "errorMessage"
|
||||
}
|
||||
|
||||
@@ -37,6 +40,7 @@ public struct ErrorLogEntry: Sendable {
|
||||
DatabaseKey.date: date.timeIntervalSince1970,
|
||||
DatabaseKey.sourceName: sourceName,
|
||||
DatabaseKey.sourceID: sourceID,
|
||||
DatabaseKey.operation: operation,
|
||||
DatabaseKey.errorMessage: errorMessage
|
||||
]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user