From 1c3e21a95ef373df0770fce7a2d05a892797180c Mon Sep 17 00:00:00 2001 From: Luca Vaccaro Date: Mon, 28 Mar 2022 17:35:51 +0200 Subject: [PATCH] move log_level into gdk init for test and build assets script Signed-off-by: Luca Vaccaro --- tests/test_multi_session.cpp | 2 +- tools/make_generated_assets.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_multi_session.cpp b/tests/test_multi_session.cpp index ce0b231a4..004ec93db 100644 --- a/tests/test_multi_session.cpp +++ b/tests/test_multi_session.cpp @@ -9,9 +9,9 @@ int main() { nlohmann::json init_config; init_config["datadir"] = "."; + init_config["log_level"] = "debug"; nlohmann::json net_params; - net_params["log_level"] = "debug"; net_params["use_tor"] = true; // net_params["proxy"] = "localhost:9050"; net_params["name"] = "testnet"; diff --git a/tools/make_generated_assets.cpp b/tools/make_generated_assets.cpp index be283b11c..f5aeef3c8 100644 --- a/tools/make_generated_assets.cpp +++ b/tools/make_generated_assets.cpp @@ -74,9 +74,9 @@ static std::string generate(sdk::session& session, const std::string& page, cons int main() { - sdk::init({ { "datadir", "." } }); + sdk::init({ { "datadir", "." }, { "log_level", "info" } }); sdk::session session; - session.connect({ { "name", "liquid" }, { "log_level", "info" } }); + session.connect({ { "name", "liquid" } }); const auto mnemonic_env = std::getenv("GA_MNEMONIC"); GDK_RUNTIME_ASSERT_MSG(mnemonic_env, "Set GA_MNEMONIC to generate assets");