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

Logging refactoring phase #2 #3268

Merged
merged 15 commits into from
Aug 28, 2024
Merged

Conversation

federicocappelli
Copy link
Member

@federicocappelli federicocappelli commented Aug 22, 2024

Task/Issue URL: https://app.asana.com/0/1205842942115003/1206750146033742/f
Tech Design URL: https://app.asana.com/0/1200194497630846/1206777133329590/f
CC: @samsymons @diegoreymendez

Description:
Now logging is aligned with our guideline: https://app.asana.com/0/1202500774821704/1208001254061393/f

  • all OSLog wrappers removed
  • all os_log uses removed and replaced with Logger
  • ability to disable logs from the app removed
  • Local and shared Logger improved

Internal references:

Software Engineering Expectations
Technical Design Template

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@federicocappelli federicocappelli changed the title Fcappelli/os log to logger 2 Logging refactoring phase #2 Aug 22, 2024
Copy link

github-actions bot commented Aug 22, 2024

Warnings
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by 🚫 dangerJS against ebc98fb

@@ -213,7 +213,7 @@ final class DuckPlayer: DuckPlayerProtocol {
let isPiPEnabled = webView?.configuration.allowsPictureInPictureMediaPlayback == true
let pip = InitialPlayerSettings.PIP(status: isPiPEnabled ? .enabled : .disabled)
let platform = InitialPlayerSettings.Platform(name: "ios")
let environment = InitialPlayerSettings.Environment.development
// let environment = InitialPlayerSettings.Environment.development
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for cleaning this warning. This will be removed soon

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
# Conflicts:
#	Core/Pixel.swift
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
federicocappelli added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Aug 28, 2024
Task/Issue URL:
https://app.asana.com/0/1205842942115003/1206750146033742/f
iOS PR: duckduckgo/iOS#3268
macOS PR: TBC
What kind of version bump will this require?: Major
Tech Design URL:
https://app.asana.com/0/1200194497630846/1206777133329590/f

**Description**:
Now logging is aligned to our guideline:
https://app.asana.com/0/1202500774821704/1208001254061393/f
- all OSLog wrappers removed
- all os_log uses removed and replaced with Logger 
- ability to disable logs from the app removed
- Local and shared Logger improved
@federicocappelli federicocappelli merged commit 8d7701d into main Aug 28, 2024
13 checks passed
@federicocappelli federicocappelli deleted the fcappelli/os_log_to_logger_2 branch August 28, 2024 11:22
samsymons added a commit that referenced this pull request Aug 29, 2024
# By Daniel Bernal (4) and others
# Via Bartek Waresiak (2) and others
* main: (32 commits)
  Add error pixels for Subscription keychain access errors (#3276)
  [DuckPlayer] 24. FrontEnd Translation (#3281)
  [DuckPlayer] 23. Ship Review Fixes (#3279)
  Logging refactoring phase #2 (#3268)
  Move WireGuard dependency to packet tunnel provider (#3273)
  Add PPro unified feedback form (#3248)
  disable flaky test (#3283)
  Unified feedback form for Privacy Pro (#3172)
  Release 7.135.0-1 (#3280)
  fix back forward swipe gesture in landscape (#3278)
  Set onboarding completed for sync end to end tests (#3259)
  Release 7.135.0-0 (#3277)
  BSK Bump for macOS Freemium PIR RMF Attribute (No iOS Impact) (#3275)
  Fix math expressions on address bar (#3262)
  fix progress view crash by removing call to flush (#3272)
  Update autoconsent to v10.15.0 (#3254)
  Mitigate Onboarding pixels firing with empty atb (#3265)
  Clean up legacy VPN navigation (#3266)
  Re-Enable Broken Site Toast on iOS (#3244)
  Bump BSK (No iOS Changes) (#3261)
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants