Skip to content

Conversation

@noajshu
Copy link
Contributor

@noajshu noajshu commented Aug 6, 2025

Refactored verbose logging mechanism to use a CallbackStream class that can be given a callback handler
Since AI agents have trouble with Bazel, I added a CMake build system.

  • If the Python users leaves the verbose_callback=None (the default) in the config ctor, it will be a no-op and all verbose logging will be disabled.
  • This should enable integration with the visualization utilities in viz/, which could probably be moved into python now and integrated better with the module.

@noajshu
Copy link
Contributor Author

noajshu commented Aug 6, 2025

not sure why the CI checks are failing 😕 it seems like they are getting cut off halfway

@NoureldinYosri
Copy link
Contributor

did you run the clang formatter on the code locally? ... the GitHub clang formatter can't parse the code

@noajshu
Copy link
Contributor Author

noajshu commented Aug 6, 2025

did you run the clang formatter on the code locally? ... the GitHub clang formatter can't parse the code

Thanks, ran it!

Copy link
Collaborator

@LalehB LalehB left a comment

Choose a reason for hiding this comment

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

LGTM!
Thanks Noah!

if (config.verbose) {
std::cout << "t0 = " << t0 << " t1 = " << t1 << std::endl;
}
config.log_stream << "t0 = " << t0 << " t1 = " << t1 << std::endl;
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we also have this: if (config.log_stream.active) { for this log_stream?

Copy link
Contributor

@NoureldinYosri NoureldinYosri left a comment

Choose a reason for hiding this comment

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

@noajshu do we want the callback solution or do you want to wait until I figure out the verbose thing?

@@ -0,0 +1,101 @@
cmake_minimum_required(VERSION 3.16)
Copy link
Contributor

Choose a reason for hiding this comment

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

this change is unrelated to the functionality in the PR title

@noajshu
Copy link
Contributor Author

noajshu commented Aug 7, 2025

Abandoning this because #68 fixes the problem

@noajshu noajshu closed this Aug 7, 2025
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.

3 participants