Remove unused logCurlOnSuccess

This commit is contained in:
Max Radermacher
2025-07-24 12:13:02 -05:00
committed by GitHub
parent 2c07274369
commit 27403b204f
3 changed files with 0 additions and 19 deletions

View File

@@ -30,12 +30,6 @@ class RESTNetworkManager {
let result = try await sessionManager.performRequest(request)
#if TESTABLE_BUILD
if DebugFlags.logCurlOnSuccess {
HTTPUtils.logCurl(for: request)
}
#endif
OutageDetection.shared.reportConnectionSuccess()
return result

View File

@@ -348,12 +348,6 @@ public class OWSURLSession: OWSURLSessionProtocol {
}
}
#if TESTABLE_BUILD
if DebugFlags.logCurlOnSuccess, let originalRequest {
HTTPUtils.logCurl(for: originalRequest)
}
#endif
return httpUrlResponse
}

View File

@@ -123,13 +123,6 @@ public enum DebugFlags {
public static let internalMegaphoneEligible = build.includes(.internal)
// Currently this flag is only honored by NetworkManager,
// but we could eventually honor in other places as well:
//
// * The socket manager.
// * Places we make requests using tasks.
public static let logCurlOnSuccess = false
public static let verboseNotificationLogging = build.includes(.internal)
public static let deviceTransferVerboseProgressLogging = build.includes(.internal)