mirror of
https://github.com/MbinOrg/mbin-website.git
synced 2025-06-26 13:18:58 +00:00
Add more logging (#6)
This commit is contained in:
parent
4d89867120
commit
0db089aedf
1 changed files with 4 additions and 1 deletions
|
@ -40,6 +40,7 @@ const fetchServerList = async () => {
|
||||||
/** @type Set<string> */
|
/** @type Set<string> */
|
||||||
const servers = new Set();
|
const servers = new Set();
|
||||||
|
|
||||||
|
console.info('Fetch Mbin servers from fediverse.observer API');
|
||||||
// Fetch Mbin servers from fediverse.observer
|
// Fetch Mbin servers from fediverse.observer
|
||||||
const fediverseObserver = await (
|
const fediverseObserver = await (
|
||||||
await fetch('https://api.fediverse.observer/', {
|
await fetch('https://api.fediverse.observer/', {
|
||||||
|
@ -52,6 +53,7 @@ const fetchServerList = async () => {
|
||||||
servers.add(server.domain);
|
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;
|
// 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.
|
// 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.
|
// 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('; '),
|
Cookie: fedidbCookies.join('; '),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.info('Fetch Mbin servers from fedidb.org API');
|
||||||
let fedidbNextCursor = '';
|
let fedidbNextCursor = '';
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Add table
Reference in a new issue