Skip to content

Commit

Permalink
logback README fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
biandratti committed Dec 14, 2024
1 parent 50b6f59 commit a17d645
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ pnet = "0.35.0"
failure = "0.1.8"
log = "0.4.22"
ttl_cache = "0.5.1"
lazy_static = "1.5.0"

[dev-dependencies]
clap = { version = "4.5.23", features = ["derive"] }
lazy_static = "1.5.0"
log4rs = "1.3.0"

[[example]]
Expand Down
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ ip link show
### Process packages
```
cargo build --release --examples
sudo RUST_LOG=info RUST_BACKTRACE=1 ./target/release/examples/p0f --interface <INTERFACE>
sudo RUST_LOG=info RUST_BACKTRACE=1 ./target/release/examples/p0f -i <INTERFACE> -l <LOG_FILE.LOG>
```
3 changes: 1 addition & 2 deletions examples/p0f.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@ fn initialize_logging(log_file: Option<String>) {
}

fn main() {
//env_logger::init();
let args = Args::parse();

let db = Box::leak(Box::new(Database::default()));
initialize_logging(args.log_file.clone());
initialize_logging(args.log_file);

debug!("Loaded database: {:?}", db);

Expand Down

0 comments on commit a17d645

Please sign in to comment.