Skip to content

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

chore(billing): remove no-op missingKeyWarned flag (#4031)

firecrawl-spring[bot]a4a79702fa9c
diff --git a/apps/api/src/services/autumn/client.ts b/apps/api/src/services/autumn/client.ts
index 7fba5b859..2e10e4267 100644
--- a/apps/api/src/services/autumn/client.ts
+++ b/apps/api/src/services/autumn/client.ts
@@ -2,13 +2,10 @@ import { Autumn } from "autumn-js";
import { config } from "../../config";
import { logger } from "../../lib/logger";
-let missingKeyWarned = false;
-
-if (!config.AUTUMN_SECRET_KEY && !missingKeyWarned) {
+if (!config.AUTUMN_SECRET_KEY) {
logger.warn(
"AUTUMN_SECRET_KEY is not set - add AUTUMN_SECRET_KEY to enable Autumn",
);
- missingKeyWarned = true;
}
export const autumnClient = config.AUTUMN_SECRET_KEY