Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit f89f2da

Browse files
VPN logs level set as default instead of debug. (#3438)
Task/Issue URL: https://app.asana.com/0/1205842942115003/1208598980823867/f Some VPN logs level was incorrectly changed during the logging refactoring, this PR reverts it to the original value
1 parent 4a3267e commit f89f2da

File tree

11 files changed

+19
-19
lines changed

11 files changed

+19
-19
lines changed

DuckDuckGo.xcodeproj/project.pbxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -14384,7 +14384,7 @@
1438414384
repositoryURL = "https://github.com/duckduckgo/BrowserServicesKit";
1438514385
requirement = {
1438614386
kind = exactVersion;
14387-
version = 200.1.0;
14387+
version = 200.1.1;
1438814388
};
1438914389
};
1439014390
9FF521422BAA8FF300B9819B /* XCRemoteSwiftPackageReference "lottie-spm" */ = {

DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"kind" : "remoteSourceControl",
3333
"location" : "https://github.com/duckduckgo/BrowserServicesKit",
3434
"state" : {
35-
"revision" : "65cfb8b60909be241d4b5d11c764c1eb3f174534",
36-
"version" : "200.1.0"
35+
"revision" : "75930fb1caa2790bd757221660b85a839d215f9f",
36+
"version" : "200.1.1"
3737
}
3838
},
3939
{

DuckDuckGo/LoginItems/LoginItemsManager.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ final class LoginItemsManager: LoginItemsManaging {
4646
for item in items {
4747
do {
4848
try item.enable()
49-
Logger.networkProtection.debug("🟢 Enabled successfully \(String(describing: item), privacy: .public)")
49+
Logger.networkProtection.log("🟢 Enabled successfully \(String(describing: item), privacy: .public)")
5050
} catch let error as NSError {
5151
handleError(for: item, action: .enable, error: error)
5252
}
@@ -59,7 +59,7 @@ final class LoginItemsManager: LoginItemsManaging {
5959
for item in items {
6060
do {
6161
try item.enable()
62-
Logger.networkProtection.debug("🟢 Enabled successfully \(String(describing: item), privacy: .public)")
62+
Logger.networkProtection.log("🟢 Enabled successfully \(String(describing: item), privacy: .public)")
6363
} catch let error as NSError {
6464
handleError(for: item, action: .enable, error: error)
6565
throw error
@@ -71,7 +71,7 @@ final class LoginItemsManager: LoginItemsManaging {
7171
for item in items {
7272
do {
7373
try item.restart()
74-
Logger.networkProtection.debug("🟢 Restarted successfully \(String(describing: item), privacy: .public)")
74+
Logger.networkProtection.log("🟢 Restarted successfully \(String(describing: item), privacy: .public)")
7575
} catch let error as NSError {
7676
handleError(for: item, action: .restart, error: error)
7777
}

DuckDuckGo/NetworkProtection/AppTargets/BothAppTargets/NetworkProtectionTunnelController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ final class NetworkProtectionTunnelController: TunnelController, TunnelSessionPr
830830

831831
private func fetchAuthToken() throws -> NSString? {
832832
if let accessToken = try? accessTokenStorage.getAccessToken() {
833-
Logger.networkProtection.debug("🟢 TunnelController found token")
833+
Logger.networkProtection.log("🟢 TunnelController found token")
834834
return Self.adaptAccessTokenForVPN(accessToken) as NSString?
835835
} else {
836836
Logger.networkProtection.error("TunnelController found no token")

DuckDuckGo/NetworkProtection/NetworkExtensionTargets/NetworkExtensionTargets/MacPacketTunnelProvider.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ final class MacPacketTunnelProvider: PacketTunnelProvider {
569569
try super.loadVendorOptions(from: provider)
570570

571571
guard let vendorOptions = provider?.providerConfiguration else {
572-
Logger.networkProtection.debug("🔵 Provider is nil, or providerConfiguration is not set")
572+
Logger.networkProtection.log("🔵 Provider is nil, or providerConfiguration is not set")
573573
throw ConfigurationError.missingProviderConfiguration
574574
}
575575

@@ -578,7 +578,7 @@ final class MacPacketTunnelProvider: PacketTunnelProvider {
578578

579579
private func loadDefaultPixelHeaders(from options: [String: Any]) throws {
580580
guard let defaultPixelHeaders = options[NetworkProtectionOptionKey.defaultPixelHeaders] as? [String: String] else {
581-
Logger.networkProtection.debug("🔵 Pixel options are not set")
581+
Logger.networkProtection.log("🔵 Pixel options are not set")
582582
throw ConfigurationError.missingPixelHeaders
583583
}
584584

DuckDuckGo/NetworkProtection/NetworkExtensionTargets/NetworkExtensionTargets/NetworkProtectionTokenStore+SubscriptionTokenKeychainStorage.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extension NetworkProtectionKeychainTokenStore: SubscriptionTokenStoring {
3333
if token.hasPrefix("ddg:") {
3434
token = token.replacingOccurrences(of: "ddg:", with: "")
3535
}
36-
Logger.networkProtection.debug("🟢 Wrapper successfully fetched token \(token)")
36+
Logger.networkProtection.log("🟢 Wrapper successfully fetched token \(token)")
3737
return token
3838
}
3939

DuckDuckGoNotifications/DuckDuckGoNotificationsAppDelegate.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ final class DuckDuckGoNotificationsAppDelegate: NSObject, NSApplicationDelegate
7272
Logger.networkProtection.info("Login item finished launching")
7373

7474
startObservingVPNStatusChanges()
75-
Logger.networkProtection.info("Login item listening")
75+
Logger.networkProtection.log("Login item listening")
7676
}
7777

7878
private func startObservingVPNStatusChanges() {
79-
Logger.networkProtection.info("Register with sysex")
79+
Logger.networkProtection.log("Register with sysex")
8080

8181
distributedNotificationCenter.publisher(for: .showIssuesStartedNotification)
8282
.receive(on: DispatchQueue.main)
@@ -110,7 +110,7 @@ final class DuckDuckGoNotificationsAppDelegate: NSObject, NSApplicationDelegate
110110
}.store(in: &cancellables)
111111

112112
distributedNotificationCenter.publisher(for: .serverSelected).sink { [weak self] _ in
113-
Logger.networkProtection.info("Got notification: listener started")
113+
Logger.networkProtection.log("Got notification: listener started")
114114
self?.notificationsPresenter.requestAuthorization()
115115
}.store(in: &cancellables)
116116

DuckDuckGoVPN/DuckDuckGoVPNAppDelegate.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ final class DuckDuckGoVPNApplication: NSApplication {
4141
private let _delegate: DuckDuckGoVPNAppDelegate
4242

4343
override init() {
44-
Logger.networkProtection.debug("🟢 Status Bar Agent starting\nPath: (\(Bundle.main.bundlePath, privacy: .public))\nVersion: \("\(Bundle.main.versionNumber!).\(Bundle.main.buildNumber)", privacy: .public)\nPID: \(NSRunningApplication.current.processIdentifier, privacy: .public)")
44+
Logger.networkProtection.log("🟢 Status Bar Agent starting\nPath: (\(Bundle.main.bundlePath, privacy: .public))\nVersion: \("\(Bundle.main.versionNumber!).\(Bundle.main.buildNumber)", privacy: .public)\nPID: \(NSRunningApplication.current.processIdentifier, privacy: .public)")
4545

4646
// prevent agent from running twice
4747
if let anotherInstance = NSRunningApplication.runningApplications(withBundleIdentifier: Bundle.main.bundleIdentifier!).first(where: { $0 != .current }) {
@@ -75,7 +75,7 @@ final class DuckDuckGoVPNApplication: NSApplication {
7575

7676
#if DEBUG
7777
if accountManager.accessToken != nil {
78-
Logger.networkProtection.debug("🟢 VPN Agent found token")
78+
Logger.networkProtection.error("🟢 VPN Agent found token")
7979
} else {
8080
Logger.networkProtection.error("VPN Agent found no token")
8181
}
@@ -363,7 +363,7 @@ final class DuckDuckGoVPNAppDelegate: NSObject, NSApplicationDelegate {
363363
func applicationDidFinishLaunching(_ aNotification: Notification) {
364364

365365
APIRequest.Headers.setUserAgent(UserAgent.duckDuckGoUserAgent())
366-
Logger.networkProtection.info("DuckDuckGoVPN started")
366+
Logger.networkProtection.log("DuckDuckGoVPN started")
367367

368368
// Setup Remote Configuration
369369
Configuration.setURLProvider(VPNAgentConfigurationURLProvider())

LocalPackages/DataBrokerProtection/Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ let package = Package(
2929
targets: ["DataBrokerProtection"])
3030
],
3131
dependencies: [
32-
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "200.1.0"),
32+
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "200.1.1"),
3333
.package(path: "../SwiftUIExtensions"),
3434
.package(path: "../XPCHelper"),
3535
],

LocalPackages/NetworkProtectionMac/Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let package = Package(
3232
.library(name: "VPNAppLauncher", targets: ["VPNAppLauncher"]),
3333
],
3434
dependencies: [
35-
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "200.1.0"),
35+
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "200.1.1"),
3636
.package(url: "https://github.com/airbnb/lottie-spm", exact: "4.4.3"),
3737
.package(path: "../AppLauncher"),
3838
.package(path: "../UDSHelper"),

LocalPackages/SubscriptionUI/Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let package = Package(
1212
targets: ["SubscriptionUI"]),
1313
],
1414
dependencies: [
15-
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "200.1.0"),
15+
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "200.1.1"),
1616
.package(path: "../SwiftUIExtensions")
1717
],
1818
targets: [

0 commit comments

Comments
 (0)