fixed the redundant ip

This commit is contained in:
Ramil Algayev 2024-12-10 13:53:09 +01:00
parent 5acce18dd8
commit f448bf790d

@ -36,7 +36,7 @@ impl NodeInfo {
pub fn log(&self, ip: &IP) {
let json = format!("{{\"ip\":\"{}\",", ip) + &self.to_json()[1..];
if let Err(e) = Logfile::append(LOG_PATH, &format!("{}: {}\n", ip, &json)) {
if let Err(e) = Logfile::append(LOG_PATH, &format!("{}\n", &json)) {
println!("Could not log node info: {:?}", e);
}
}