Skip to content

Commit

Permalink
move log_level into gdk init for test and build assets script
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Vaccaro <[email protected]>
  • Loading branch information
lvaccaro committed Mar 28, 2022
1 parent f8922ac commit 1c3e21a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_multi_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions tools/make_generated_assets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 1c3e21a

Please sign in to comment.