|
|
|
|
@ -252,10 +252,13 @@ public class StoreCenter { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public func resetLoggingCollections() { |
|
|
|
|
self._failedAPICallsCollection?.reset() |
|
|
|
|
self._logs?.reset() |
|
|
|
|
|
|
|
|
|
Task { |
|
|
|
|
do { |
|
|
|
|
try FileManager.default.removeItem(at: Log.urlForJSONFile()) |
|
|
|
|
try FileManager.default.removeItem(at: FailedAPICall.urlForJSONFile()) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let facApiCallCollection: ApiCallCollection<FailedAPICall> = try self.apiCallCollection() |
|
|
|
|
await facApiCallCollection.reset() |
|
|
|
|
let logApiCallCollection: ApiCallCollection<Log> = try self.apiCallCollection() |
|
|
|
|
|