fixed the redundant ip
This commit is contained in:
parent
5acce18dd8
commit
f448bf790d
@ -36,7 +36,7 @@ impl NodeInfo {
|
|||||||
|
|
||||||
pub fn log(&self, ip: &IP) {
|
pub fn log(&self, ip: &IP) {
|
||||||
let json = format!("{{\"ip\":\"{}\",", ip) + &self.to_json()[1..];
|
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);
|
println!("Could not log node info: {:?}", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user