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 logging for finalize_staged_data #2084

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

poodlewars
Copy link
Collaborator

No description provided.

@@ -93,7 +93,7 @@ folly::Future<entity::VariantKey> write(
"Descriptor id mismatch in atom key {} != {}",
stream_id,
segment.descriptor().id());

ARCTICDB_DEBUG(log::version(), "Creating write future key_type {} stream_id {} start_index {} end_index {}");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you want ARCTICDB_RUNTIME_DEBUG? Otherwise they're going to get compiled out

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They're so noisy that I think I want them compiled out

Copy link
Collaborator

Choose a reason for hiding this comment

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

Cool, but I thought you wanted some stuff you could switch on in a customer environment? Bear in mind that in frequently-called functions the parameters will get evaluated, so we need to be careful not to slow anything down

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was planning to give them a debug wheel (because I want to run the memory profiler too, which needs debug symbols). I didn't want to worry about the cost of the parameter evaulation in release builds, so thought safest to just compile them all out in release builds.

@poodlewars poodlewars force-pushed the aseaton/20241217/8066284387/finalize-staged-debug branch from 63265d8 to 55b5ab8 Compare December 19, 2024 11:38
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