Skip to content

Commit f8305fe

Browse files
jacobsimeonJacob Morris
authored and
Jacob Morris
committed
Don't capture messages when encountering unsupported Particle elements
These captures are causing a huge performance issue so disabling for now. We can come up with a way to capture them in a more efficient manner in the future.
1 parent 397ea08 commit f8305fe

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

PocketKit/Sources/Sync/Particle/Decodable/ArticleComponent+Decodable.swift

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ extension ArticleComponent: Decodable {
2626

2727
guard let componentType = ComponentType(rawValue: rawType) else {
2828
self = .unsupported(rawType)
29-
Crashlogger.capture(message: "Encountered unsupported \(ArticleComponent.self) type: \(rawType)")
3029
return
3130
}
3231

PocketKit/Sources/Sync/Particle/Decodable/InlineModifer+Decodable.swift

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ extension InlineModifier: Decodable {
1616
let container = try decoder.container(keyedBy: InlineModifierTypeKey.self)
1717
let typeString = try container.decode(String.self, forKey: .type)
1818
guard let type = InlineModifierType(rawValue: typeString) else {
19-
Crashlogger.capture(message: "Encountered unsupported \(InlineModifier.self) type: \(typeString)")
2019
self = .unsupported(typeString)
2120
return
2221
}

PocketKit/Sources/Sync/Particle/Decodable/InlineStyle+Decodable.swift

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ extension InlineStyle: Decodable {
3939
case .strong:
4040
return .strong
4141
case .none:
42-
Crashlogger.capture(message: "Encountered unsupported \(InlineStyle.self) type: \(rawStyle)")
4342
return .unsupported(rawStyle)
4443
}
4544
}()

0 commit comments

Comments
 (0)