Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

feat(v1/search): add query to logs to make debugging 502s easier

Gergő Móricz1a0e44a7c7cf
diff --git a/apps/api/src/controllers/v1/search.ts b/apps/api/src/controllers/v1/search.ts
index e0a2340e1..f185ce4df 100644
--- a/apps/api/src/controllers/v1/search.ts
+++ b/apps/api/src/controllers/v1/search.ts
@@ -208,6 +208,7 @@ export async function searchController(
module: "search",
method: "searchController",
zeroDataRetention: req.acuc?.flags?.forceZDR,
+ searchQuery: req.body.query.slice(0, 100),
});
if (req.acuc?.flags?.forceZDR) {