mirror of
https://github.com/nubenetes/awesome-kubernetes.git
synced 2026-05-23 09:33:33 +00:00
feat: enhance real-time logging for evaluation and injection transparency
This commit is contained in:
@@ -105,7 +105,8 @@ async def evaluate_extracted_assets(raw_assets: List[Dict]) -> Dict[str, Dict]:
|
||||
"category": valid_cats[0], "impact_score": score, "is_exceptional": score > 80,
|
||||
"reasoning": reasoning
|
||||
}
|
||||
log_event(f" [+] ACEPTADO: \"{data['title']}\" -> {valid_cats[0]} (Score: {score})")
|
||||
log_event(f" [+] ACEPTADO: \"{data['title']}\" (Score: {score})")
|
||||
log_event(f" Destino: docs/{valid_cats[0]}.md")
|
||||
log_event(f" Descripción: {data['desc']}")
|
||||
log_event(f" Motivo IA: {reasoning}")
|
||||
|
||||
|
||||
@@ -209,7 +209,9 @@ async def master_orchestrator():
|
||||
if len(new_content) > len(content):
|
||||
modified_files_content[file_path] = new_content
|
||||
with open(file_path, 'w') as f: f.write(new_content)
|
||||
log_event(f" [>>>] INYECTADO: {asset['url']}")
|
||||
log_event(f" [>>>] ÉXITO: Inyectado en docs/{category}.md -> {asset['url']}")
|
||||
else:
|
||||
log_event(f" [!] ADVERTENCIA: La inyección no modificó el archivo para {asset['url']}")
|
||||
except Exception as e:
|
||||
log_event(f" [!] Error inyectando {asset['url']}: {e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user