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

fix(dsl): Use info instead of std::cout to log #323

Merged
merged 2 commits into from
Apr 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions cpp/src/barretenberg/dsl/acir_format/acir_format.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "acir_format.hpp"
#include "barretenberg/common/log.hpp"

using namespace proof_system::plonk::stdlib::types;

Expand All @@ -15,7 +16,7 @@ void read_witness(Composer& composer, std::vector<barretenberg::fr> witness)
void create_circuit(Composer& composer, const acir_format& constraint_system)
{
if (constraint_system.public_inputs.size() > constraint_system.varnum) {
std::cout << "too many public inputs!" << std::endl;
info("create_circuit: too many public inputs!");
}

for (size_t i = 1; i < constraint_system.varnum; ++i) {
Expand Down Expand Up @@ -91,7 +92,7 @@ Composer create_circuit(const acir_format& constraint_system,
std::unique_ptr<proof_system::ReferenceStringFactory>&& crs_factory)
{
if (constraint_system.public_inputs.size() > constraint_system.varnum) {
std::cout << "too many public inputs!" << std::endl;
info("create_circuit: too many public inputs!");
}

Composer composer(std::move(crs_factory));
Expand Down Expand Up @@ -172,7 +173,7 @@ Composer create_circuit_with_witness(const acir_format& constraint_system,
std::unique_ptr<ReferenceStringFactory>&& crs_factory)
{
if (constraint_system.public_inputs.size() > constraint_system.varnum) {
std::cout << "too many public inputs!" << std::endl;
info("create_circuit_with_witness: too many public inputs!");
}

Composer composer(std::move(crs_factory));
Expand Down Expand Up @@ -253,7 +254,7 @@ Composer create_circuit_with_witness(const acir_format& constraint_system,
Composer create_circuit_with_witness(const acir_format& constraint_system, std::vector<fr> witness)
{
if (constraint_system.public_inputs.size() > constraint_system.varnum) {
std::cout << "too many public inputs!" << std::endl;
info("create_circuit_with_witness: too many public inputs!");
}

auto composer = Composer();
Expand Down Expand Up @@ -334,7 +335,7 @@ Composer create_circuit_with_witness(const acir_format& constraint_system, std::
void create_circuit_with_witness(Composer& composer, const acir_format& constraint_system, std::vector<fr> witness)
{
if (constraint_system.public_inputs.size() > constraint_system.varnum) {
std::cout << "too many public inputs!" << std::endl;
info("create_circuit_with_witness: too many public inputs!");
}

for (size_t i = 1; i < constraint_system.varnum; ++i) {
Expand Down