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

enforce that logging system can only be bootstrapped once #32

Merged
merged 1 commit into from Feb 22, 2019

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Jan 17, 2019

motivation: safer logging system

changes: do a precondition check to verify logging syste is only initialized/bootstrapped once per process

@tomerd
Copy link
Contributor Author

tomerd commented Jan 17, 2019

@weissi plz merge/fix #31 first

@tomerd tomerd force-pushed the fixes3 branch 3 times, most recently from 81978a0 to 6ce579b Compare January 17, 2019 22:53
Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

A bit worried about this but perhaps we can start with it. I guess it is true that if we have racy setters of this then some library is misbehaving etc.

Always easier to lift restrictions rather than add them later after all.
+0 from me, I don't mind it tho :)

Sources/Logging/Logging.swift Outdated Show resolved Hide resolved
@tomerd
Copy link
Contributor Author

tomerd commented Feb 22, 2019

@weissi rebased

@tomerd tomerd force-pushed the fixes3 branch 2 times, most recently from 4ca4263 to db856eb Compare February 22, 2019 18:10
@tomerd
Copy link
Contributor Author

tomerd commented Feb 22, 2019

@weissi rebased again

motivation: safer logging system

changes: do a precondition check to verify logging syste is only initialized/bootstrapped once per process
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.

None yet

3 participants