From b2d0ed978c7c062c5f66ed09a1be832d63cb2805 Mon Sep 17 00:00:00 2001 From: Aleksandr Cherenkov Date: Wed, 31 Jan 2024 14:52:17 +0000 Subject: [PATCH] logger --- include/nil/blueprint/handle_component.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/nil/blueprint/handle_component.hpp b/include/nil/blueprint/handle_component.hpp index fb3809a0..1f943c5d 100644 --- a/include/nil/blueprint/handle_component.hpp +++ b/include/nil/blueprint/handle_component.hpp @@ -169,6 +169,9 @@ namespace nil { component_finished[component_instance.component_name] = true; } + + BOOST_LOG_TRIVIAL(debug) << "Using component \"" << component_instance.component_name << "\""; + bool enable_experimental = true; if (!(component_finished[component_instance.component_name] || enable_experimental)) { @@ -190,9 +193,7 @@ namespace nil { if (component_finished[component_instance.component_name]) { components::generate_circuit(component_instance, bp, assignment, instance_input, start_row); } else { - std::cerr << "skipped constraints generation for "; - std::cerr << component_instance.component_name; - std::cerr << " component\n"; + BOOST_LOG_TRIVIAL(debug) << "component contains experimental features, constraints generation skipped"; } if (target_prover_idx == assignment.get_id() || target_prover_idx == std::numeric_limits::max()) {