Skip to content

Commit

Permalink
Merge pull request #49 from namnc/update-getting-started
Browse files Browse the repository at this point in the history
Update getting started
  • Loading branch information
voltrevo authored May 7, 2024
2 parents 3a9c153 + 496fa26 commit 2d351a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ cargo build --release
- Run the compilation

```
cargo run
cargo run --release
```

The compiled circuit and circuit report can be found in the `./output` directory.
Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use circom_2_arithc::{
program::{build_circuit, ProgramError},
};
use dotenv::dotenv;
use env_logger::init_from_env;
use env_logger::{init_from_env, Env};
use serde_json::to_string;
use std::{
fs::{self, File},
Expand All @@ -12,8 +12,8 @@ use std::{
};

fn main() -> Result<(), ProgramError> {
dotenv().expect("Failed to initialize environment");
init_from_env("LOG_LEVEL=info");
dotenv().ok();
init_from_env(Env::default().filter_or("LOG_LEVEL", "info"));

let output_path = PathBuf::from(view().value_of("output").unwrap());

Expand Down

0 comments on commit 2d351a8

Please sign in to comment.