Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve VPN logging logic #2939

Merged
merged 12 commits into from
Jul 5, 2024
Merged

Improve VPN logging logic #2939

merged 12 commits into from
Jul 5, 2024

Conversation

diegoreymendez
Copy link
Contributor

@diegoreymendez diegoreymendez commented Jul 3, 2024

Task/Issue URL: https://app.asana.com/0/1206580121312550/1207223772590802/f

iOS PR: duckduckgo/iOS#3032
BSK PR: duckduckgo/BrowserServicesKit#877

Description

Improves the logging logic for the VPN.

Testing

Test with the App Store build and the Sparkle build.

  1. Run the app
  2. Start the VPN
  3. Load some sites
  4. Change location
  5. Stop the VPN
  6. Ensure there's no crash log for the VPN in Console.app
  7. Run the following command from CLI to get the VPN logs.
log show --info --debug --signpost --predicate 'subsystem == "com.duckduckgo.macos.vpn.network-extension.debug"' --style compact --last 48h > ~/Desktop/netp.log && log show --info --debug --signpost --predicate 'subsystem == "com.duckduckgo.macos.vpn.network-extension.debug"' --style compact --last 48h > ~/Desktop/netpAppStore.log
  1. Check that the logs you see in ~/Desktop/netp.log and ~/Desktop/netpAppStore.log make sense.

Definition of Done:


Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@@ -70,7 +69,6 @@ extension OSLog {
@OSLogWrapper(AppCategories.duckPlayer) static var duckPlayer
@OSLogWrapper(AppCategories.tabSnapshots) static var tabSnapshots
@OSLogWrapper(AppCategories.sync) static var sync
@OSLogWrapper(AppCategories.networkProtection) static var networkProtection
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't really supported so I'm removing it entirely.

@diegoreymendez diegoreymendez changed the base branch from main to release/1.95.0 July 3, 2024 22:19
@diegoreymendez diegoreymendez marked this pull request as ready for review July 4, 2024 08:38
diegoreymendez added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Jul 5, 2024
Task/Issue URL: https://app.asana.com/0/1206580121312550/1207223772590802/f

iOS PR: duckduckgo/iOS#3032
macOS PR: duckduckgo/macos-browser#2939

What kind of version bump will this require?: Major/Minor/Patch

## Description

Improves the logging logic for the VPN.
@diegoreymendez
Copy link
Contributor Author

I'm retargetting to main, since I don't feel comfortable pushing changes to the internal this late.

diegoreymendez added a commit to duckduckgo/iOS that referenced this pull request Jul 5, 2024
@diegoreymendez diegoreymendez changed the base branch from release/1.95.0 to main July 5, 2024 11:45
@diegoreymendez diegoreymendez merged commit 53e02ea into main Jul 5, 2024
20 checks passed
@diegoreymendez diegoreymendez deleted the diego/vpn-logging-fixes branch July 5, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants