-
Notifications
You must be signed in to change notification settings - Fork 0
Make Logger thread-safe #15
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
Conversation
@@ -0,0 +1,147 @@ | |||
// | |||
// Logger_Tests.swift |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update the header here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woah, linter also did not catch it. Added a template as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but there are some linter errors as well.
var destinationTypes: [LogDestination.Type] = LogConfig.defaultDestinations | ||
} | ||
|
||
static let configuration = AllocatedUnfairLock<Configuration>(Configuration()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we make this one private?
} | ||
|
||
public enum LogConfig { | ||
struct Configuration { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having Configuration
inside LogConfig sounds confusing. Shall we make it State
?
🔗 Issue Links
Resolves: IOS-1160
🎯 Goal
Make Logger thread-safe because it sometimes crashes tests in Feeds
📝 Summary
🛠 Implementation
🎨 Showcase
🧪 Manual Testing Notes
☑️ Contributor Checklist
docs-content
repo