Skip to content

Commit ce65f60

Browse files
committed
add debug print
1 parent 5f7cea0 commit ce65f60

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

frontend/src/cache.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
export let routers;
2-
export let communities;
32
export const initCache = async () => {
4-
[routers, communities] = await Promise.all([
5-
fetch("/api/routers").then(resp => resp.json()),
6-
fetch("/communities.json").then(resp => resp.json())
7-
]);
3+
routers = await fetch("/api/routers").then(resp => resp.json());
84
};

src/bmp_collector.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ pub async fn run_client(
171171
None => warn!("message for nonexisting peer: {:?}", &rm),
172172
},
173173
BmpMessage::PeerUpNotification(n) => {
174+
info!("peer up: {} {:?}", n.peer.peeraddress, &n);
174175
channels.insert(n.peer.peeraddress, run_peer(client_addr, n, store));
175176
}
176177
BmpMessage::PeerDownNotification(n) => match channels.remove(&n.peer.peeraddress) {

0 commit comments

Comments
 (0)