From 0db089aedf40f8be42416e22fbd7f42d1823e93f Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Wed, 15 Jan 2025 18:58:08 +0100 Subject: [PATCH] Add more logging (#6) --- src/initdata.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/initdata.js b/src/initdata.js index 7a38443..9a4ec04 100644 --- a/src/initdata.js +++ b/src/initdata.js @@ -40,6 +40,7 @@ const fetchServerList = async () => { /** @type Set */ const servers = new Set(); + console.info('Fetch Mbin servers from fediverse.observer API'); // Fetch Mbin servers from fediverse.observer const fediverseObserver = await ( await fetch('https://api.fediverse.observer/', { @@ -51,7 +52,8 @@ const fetchServerList = async () => { for (const server of fediverseObserver.data.nodes) { servers.add(server.domain); } - + + console.info('Retrieve fedidb.org headers (cookie)'); // Fetch Mbin servers from fedidb.org. The api used below is not documented and is subject to change; // this is used due to the current publicized api not being sufficient for fetching Mbin server lists. // Once issue #3 (https://github.com/fedidb/issues/issues/3) is complete, then we can move to api v1. @@ -70,6 +72,7 @@ const fetchServerList = async () => { Cookie: fedidbCookies.join('; '), }; + console.info('Fetch Mbin servers from fedidb.org API'); let fedidbNextCursor = ''; do {