Skip to content

cleanup NSError conversion for ObjC #176

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

Merged
merged 2 commits into from
May 14, 2019
Merged

cleanup NSError conversion for ObjC #176

merged 2 commits into from
May 14, 2019

Conversation

jaeopt
Copy link
Contributor

@jaeopt jaeopt commented May 6, 2019

  • Use implicit conversion of OptimizelyError to NSError
  • LocalizedError protocol compliance to automatically add error message into NSError

@jaeopt jaeopt closed this May 6, 2019
@jaeopt jaeopt reopened this May 6, 2019
@jaeopt jaeopt closed this May 7, 2019
@jaeopt jaeopt reopened this May 7, 2019
@jaeopt jaeopt closed this May 7, 2019
@jaeopt jaeopt reopened this May 7, 2019
@jaeopt jaeopt closed this May 7, 2019
@jaeopt jaeopt reopened this May 7, 2019
@jaeopt jaeopt closed this May 10, 2019
@jaeopt jaeopt reopened this May 10, 2019
@jaeopt jaeopt closed this May 13, 2019
@jaeopt jaeopt reopened this May 13, 2019
@@ -37,7 +37,7 @@ open class DefaultLogger : OPTLogger {
if level.rawValue > DefaultLogger.logLevel.rawValue {
return
}
let message = "[OPTIMIZELY][" + level.name + "]:" + message
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add timestamp or will nslog automatically add that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Timestamp auto added for NSLog and os_log.
We should consider to add os_log for OS10+ (fallback to NSLog for older) later. I'll create a JIRA ticket.

Copy link
Contributor

@thomaszurkan-optimizely thomaszurkan-optimizely left a comment

Choose a reason for hiding this comment

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

LGTM

@jaeopt jaeopt merged commit 6157806 into master May 14, 2019
@thomaszurkan-optimizely thomaszurkan-optimizely deleted the jae/errors branch May 25, 2019 00:19
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