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 debug internals logging #18

Merged
merged 3 commits into from
Jun 13, 2020
Merged

Conversation

danielealbano
Copy link
Owner

To improve the debugging capabilities within cachegrand, a log_message_debug function has been implemented to print out a number of additional information like the current source file, function and line number of the message.

An additional macro function as been defined as well to simplify the invocation and reduce the boilerplate.

This function is a noop when compiled in release mode, all the debugging will be automatically dropped by GCC during the optimisation phase.

…erbose infos (like file path, relative to the build, current function and current line number). Add also the relative LOG_DI macro function for simple invocation
…the build to avoid printing it out when debug messages are printed out
@danielealbano danielealbano merged commit 2729bb3 into master Jun 13, 2020
@danielealbano danielealbano deleted the add_debug_internals_logging branch June 13, 2020 15:25
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.

1 participant