Reformat long log line

This commit is contained in:
Stoyan Zlatev 2025-10-27 23:05:12 +02:00
parent 2c5bec6f76
commit 735619f106

View file

@ -567,7 +567,8 @@ def sync_file_to_knowledge_by_id(
ProcessFileForm(file_id=new_file.id, collection_name=id),
user=user,
)
log.info(f"[KB Sync] replace kb_id={id} old_id={same_name_file.id} new_id={new_file.id} name={new_file.filename}")
log.info(f"[KB Sync] replace kb_id={id} old_id={same_name_file.id} "
f"new_id={new_file.id} name={new_file.filename}")
# Replace old id with new id in knowledge
file_ids = [fid for fid in file_ids if fid != same_name_file.id]