Skip to content

Commit 4efa19d

Browse files
author
Eric Liu
committed
sugested security changes
1 parent a85697c commit 4efa19d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/app.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,9 @@ def trigger_rebuild():
160160
app.rag_system.rebuild()
161161
except Exception as e:
162162
logging.error(f"Error rebuilding embeddings: {str(e)}")
163-
return jsonify(
164-
{"error": "Error rebuilding embeddings"}
165-
), 500
163+
return jsonify({"error": "Error rebuilding embeddings"}), 500
166164

167-
print("Finished rebuilding embeddings.")
165+
logging.info("Finished rebuilding embeddings.")
168166
return jsonify({"status": "Rebuild triggered successfully"}), 200
169167

170168
except Exception as e:

0 commit comments

Comments
 (0)