-
Notifications
You must be signed in to change notification settings - Fork 99
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
base: master
Are you sure you want to change the base?
Add debug logging for finalize_staged_data #2084
Conversation
cpp/arcticdb/async/async_store.hpp
Outdated
@@ -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 {}"); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Fix log message, debug not info
63265d8
to
55b5ab8
Compare
No description provided.