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

Set log level for DEBUG=ON to LOG_DEBUG. #183

Merged
merged 1 commit into from
Oct 6, 2016
Merged

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Sep 30, 2016

We use TRACE=ON (cmake flag) to enable LOG_TRACE. This way, a regular
build can enable DEBUG while not paying the price of TRACE. This is
particularly important for FFI bindings (especially Python), where
invoking callbacks can be an expensive operation.

Copy link
Member

@nurupo nurupo left a comment

Choose a reason for hiding this comment

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

Looks good.

One could make it possible to specify any of the supported debug levels with a string option to cmake, but a boolean option just for trace works too.

@iphydf iphydf force-pushed the trace branch 3 times, most recently from fb27d2c to 0fb79c5 Compare October 6, 2016 14:15
We use TRACE=ON (cmake flag) to enable LOG_TRACE. This way, a regular
build can enable DEBUG while not paying the price of TRACE. This is
particularly important for FFI bindings (especially Python), where
invoking callbacks can be an expensive operation.
@iphydf iphydf merged commit 0fb79c5 into TokTok:master Oct 6, 2016
@iphydf iphydf deleted the trace branch October 6, 2016 15:47
@iphydf iphydf modified the milestone: v0.0.2 Nov 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants