Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿ” add some logs (#136)

authored by

Thibault Le Ouay and committed by
GitHub
57830b36 81f2405e

+8 -6
+2 -1
apps/web/src/app/api/checker/cron/_cron.ts
··· 33 33 const c = new Client({ 34 34 token: env.QSTASH_TOKEN, 35 35 }); 36 - 36 + console.info(`Start cron for ${periodicity}`); 37 37 const timestamp = Date.now(); 38 38 // FIXME: Wait until db is ready 39 39 const result = await db ··· 109 109 } 110 110 } 111 111 await Promise.all(allResult); 112 + console.info(`End cron for ${periodicity} with ${allResult.length} jobs`); 112 113 };
+6 -5
apps/web/src/middleware.ts
··· 50 50 "/play/(.*)", 51 51 "/monitor/(.*)", 52 52 "/api/(.*)", 53 - "/api/og", 54 - "/api/ping", 55 - "/api/v0/cron", 56 - "/api/v0/ping", 57 53 "/api/webhook/clerk", 58 54 "/api/checker/regions/(.*)", 59 55 "/api/checker/cron/10m", ··· 107 103 }); 108 104 109 105 export const config = { 110 - matcher: ["/((?!api|_next/static|_next/image|favicon.ico).*)", "/", "/(api/og|api/ping|api/webhook|api/trpc)(.*)", "/(!api/checker/:path*)"], 106 + matcher: [ 107 + "/((?!api|_next/static|_next/image|favicon.ico).*)", 108 + "/", 109 + "/(api/webhook|api/trpc)(.*)", 110 + "/(!api/checker/:path*|!api/og|!api/ping)", 111 + ], 111 112 };