mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-15 01:30:33 +08:00
app: print 50 routes and ips in debug
This commit is contained in:
@@ -18,14 +18,14 @@ router.get('/', async (ctx) => {
|
||||
});
|
||||
|
||||
const routes = Object.keys(ctx.debug.routes).sort((a, b) => ctx.debug.routes[b] - ctx.debug.routes[a]);
|
||||
const hotRoutes = routes.slice(0, 10);
|
||||
const hotRoutes = routes.slice(0, 50);
|
||||
let hotRoutesValue = '';
|
||||
hotRoutes.forEach((item) => {
|
||||
hotRoutesValue += `${ctx.debug.routes[item]} ${item}<br>`;
|
||||
});
|
||||
|
||||
const ips = Object.keys(ctx.debug.ips).sort((a, b) => ctx.debug.ips[b] - ctx.debug.ips[a]);
|
||||
const hotIPs = ips.slice(0, 10);
|
||||
const hotIPs = ips.slice(0, 50);
|
||||
let hotIPsValue = '';
|
||||
hotIPs.forEach((item) => {
|
||||
hotIPsValue += `${ctx.debug.ips[item]} ${item}<br>`;
|
||||
|
||||
Reference in New Issue
Block a user