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

Add a function to disable all logging at runtime #528

Merged
merged 5 commits into from
Aug 22, 2017

Conversation

Adlai-Holler
Copy link
Member

Resolves #524

void ASDisableLogging() {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
atomic_store(&__ASLogEnabled, YES);
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be 'NO'?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm it's a really complex problem but I think you're correct

Copy link
Member

Choose a reason for hiding this comment

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

😂

Copy link
Contributor

@maicki maicki left a comment

Choose a reason for hiding this comment

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

LGTM

@Adlai-Holler Adlai-Holler merged commit 16ce3c9 into master Aug 22, 2017
@Adlai-Holler Adlai-Holler deleted the AHRuntimeLogDisable branch August 23, 2017 18:12
bernieperez pushed a commit to AtomTickets/Texture that referenced this pull request Apr 25, 2018
* Implement a runtime disable for all logging

* Update the changelog

* Inline the function

* Flip the scrip
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