Logger: NSLock guaranteed#86
Merged
kieran-osgood-shopify merged 1 commit intoJun 15, 2026
Merged
Conversation
Merged
11 tasks
Contributor
Author
This was referenced May 13, 2026
1ff7318 to
1b2c323
Compare
0453ef5 to
3aaa3db
Compare
1b2c323 to
a9cef3b
Compare
0763c3b to
0955280
Compare
a9cef3b to
0690561
Compare
0955280 to
c7e8091
Compare
0690561 to
29a0e02
Compare
c7e8091 to
945d4b6
Compare
29a0e02 to
673bb39
Compare
945d4b6 to
fe87622
Compare
673bb39 to
29722dd
Compare
fe87622 to
63e7604
Compare
29722dd to
7c8db7f
Compare
1d9c9a8 to
bf73472
Compare
db98f08 to
157151b
Compare
157151b to
488079a
Compare
bf73472 to
1b9f6d6
Compare
488079a to
de784be
Compare
1b9f6d6 to
1f63d02
Compare
de784be to
329a1a3
Compare
1f63d02 to
0d6d8de
Compare
329a1a3 to
88ac844
Compare
|
|
||
| private func shouldEmit(_ choice: LogLevel) -> Bool { | ||
| if logLevel == .none { | ||
| let currentLogLevel = logLevel |
Contributor
Author
There was a problem hiding this comment.
capturing the loglevel to avoid accessing the lock multiple times or the value changing between accesses
88ac844 to
7000043
Compare
0d6d8de to
0e4fa9c
Compare
markmur
approved these changes
Jun 15, 2026
ec5db8e to
d9d261f
Compare
7000043 to
1168aca
Compare
1168aca to
831d87b
Compare
d9d261f to
607fa34
Compare
831d87b to
c89f450
Compare
Contributor
Author
Merge activity
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changes are you making?
See #85 for explanation on the new LockedValue container
Aside from that not much to say about this PR, it uses LockedValue to make concurrent access to the shared logger safe
How to test
Before you merge
Important
platforms/swift/README.mdand/orplatforms/android/README.md)Releasing a new Swift version?
platforms/swift/ShopifyCheckoutKit.podspecplatforms/swift/Sources/ShopifyCheckoutKit/ShopifyCheckoutKit.swiftplatforms/swift/CHANGELOG.mdplatforms/swift/README.md(major version only)Releasing a new Android version?
versionNameinplatforms/android/lib/build.gradleplatforms/android/CHANGELOG.mdplatforms/android/README.mdTip
See the Contributing documentation for the full release process per platform.