Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFAC0 committed Jun 17, 2023
1 parent 04db9af commit 2b21c0a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ edition = "2021"

[dependencies]
crossterm = "0.26.1"
log = "0.4.19"
log = "0.4.18"
notify-rust = "4.8.0"
pnet = "0.33.0"
ratatui = { version = "0.21.0", features = ["all-widgets"] }
tui-logger = { version = "0.9.2", features = ["ratatui-support"], default-features = false}
tokio = { version = "1", features = ["full"] }
tui = "0.19.0"
tui-logger = "0.9.2"
4 changes: 2 additions & 2 deletions src/arp_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl ArpCache {
let mut entry_diff = false;
for entry in self.vec.iter() {
if new_entry.ip == entry.ip && new_entry.mac == entry.mac {
info!("[ARP Cache] Entry already exist");
warn!("[ARP Cache] Entry already exist");
return ArpCacheUpdateResult::AlreadyExist;
}
if entry.ip == new_entry.ip && entry.mac != new_entry.mac {
Expand All @@ -91,7 +91,7 @@ impl ArpCache {
if self.follow_update {
self.vec.push(new_entry);
}
info!("[ARP Cache] New entry registered");
warn!("[ARP Cache] New entry registered");

return ArpCacheUpdateResult::NewEntry;
}
Expand Down
4 changes: 2 additions & 2 deletions src/ui/tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ use crossterm::{
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
};
use log::error;
use std::{error::Error, io};
use tui::{
use ratatui::{
backend::{Backend, CrosstermBackend},
layout::{Alignment, Constraint, Direction, Layout},
style::{Color, Style},
widgets::{Block, BorderType, Borders, Paragraph},
Frame, Terminal,
};
use std::{error::Error, io};
use tui_logger::{TuiLoggerLevelOutput, TuiLoggerWidget};

use crate::net_arp::NetArpSenderMutex;
Expand Down

0 comments on commit 2b21c0a

Please sign in to comment.