mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 06:30:40 +08:00
feat: remove hot ip in debug info
This commit is contained in:
@@ -48,13 +48,6 @@ module.exports = async (ctx) => {
|
||||
});
|
||||
}
|
||||
|
||||
const ips = Object.keys(ctx.debug.ips).sort((a, b) => ctx.debug.ips[b] - ctx.debug.ips[a]);
|
||||
const hotIPs = ips.slice(0, 50);
|
||||
let hotIPsValue = '';
|
||||
hotIPs.forEach((item) => {
|
||||
hotIPsValue += `${ctx.debug.ips[item]} ${item}<br>`;
|
||||
});
|
||||
|
||||
let showDebug;
|
||||
if (!config.debugInfo || config.debugInfo === 'false') {
|
||||
showDebug = false;
|
||||
@@ -115,10 +108,6 @@ module.exports = async (ctx) => {
|
||||
name: 'Hot Paths',
|
||||
value: hotPathsValue,
|
||||
},
|
||||
{
|
||||
name: 'Hot IP',
|
||||
value: hotIPsValue,
|
||||
},
|
||||
{
|
||||
name: 'Hot Error Routes',
|
||||
value: hotErrorRoutesValue,
|
||||
|
||||
Reference in New Issue
Block a user