From 795904638cbca23127ee58b0d405eeecdbb06cfb Mon Sep 17 00:00:00 2001 From: Nubenetes Bot Date: Sun, 10 May 2026 10:29:11 +0200 Subject: [PATCH] feat(health): dynamic URL shortening for high-volume logs --- src/intelligent_health_checker.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/intelligent_health_checker.py b/src/intelligent_health_checker.py index b39fbf68..56ffd0a3 100644 --- a/src/intelligent_health_checker.py +++ b/src/intelligent_health_checker.py @@ -271,8 +271,13 @@ class IntelligentLinkCleaner: for log in actions: emoji = {"removed": "❌", "modified": "🔄", "created": "✨"}.get(log["action"], "❓") - # Acortar URL para ahorrar espacio - short_url = (log["url"][:45] + "...") if len(log["url"]) > 48 else log["url"] + + # Inteligencia: Mantener URL completa mientras haya espacio + if current_len > 45000: + short_url = (log["url"][:50] + "...") if len(log["url"]) > 53 else log["url"] + else: + short_url = log["url"] + entry = f"| `{log['file']}` | {emoji} | {short_url} | {log['reason']} |\n" if current_len + len(entry) > 62000: