Skip to content

Commit

Permalink
Disable CVDisplayLing logging (#421)
Browse files Browse the repository at this point in the history
* Disable OS_ACTIVITY_MODE logging

* disable CVDisplayLink logs
  • Loading branch information
mallexxx authored Feb 15, 2022
1 parent 6ed58b6 commit 3181241
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions DuckDuckGo/AppDelegate/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,22 @@ final class AppDelegate: NSObject, NSApplicationDelegate {

let launchTimingPixel = TimedPixel(.launchTiming)

#if DEBUG
static var isRunningTests: Bool {
ProcessInfo.processInfo.environment["XCTestConfigurationFilePath"] != nil
}

let disableCVDisplayLinkLogs: Void = {
// Disable CVDisplayLink logs
CFPreferencesSetValue("cv_note" as CFString,
0 as CFPropertyList,
"com.apple.corevideo" as CFString,
kCFPreferencesCurrentUser,
kCFPreferencesAnyHost)
CFPreferencesSynchronize("com.apple.corevideo" as CFString, kCFPreferencesCurrentUser, kCFPreferencesAnyHost)
}()
#endif

let urlEventHandler = URLEventHandler()

private let keyStore = EncryptionKeyStore()
Expand Down

0 comments on commit 3181241

Please sign in to comment.