Chore: better logging

This commit is contained in:
SukkaW
2022-09-22 22:57:00 +08:00
parent d5f0f2428f
commit 8a7f32e2cd
9 changed files with 47 additions and 12 deletions

View File

@@ -4,6 +4,8 @@ const path = require('path');
const { isIPv4, isIPv6 } = require('net');
(async () => {
console.time('Total Time - build-telegram-cidr');
const resp = await fetchWithRetry('https://core.telegram.org/resources/cidr.txt');
const lastModified = new Date(resp.headers.get('last-modified'));
@@ -27,4 +29,6 @@ const { isIPv4, isIPv6 } = require('net');
}).join('\n') + '\n',
'utf-8'
);
console.timeEnd('Total Time - build-telegram-cidr');
})();