diff options
| author | Frank <[email protected]> | 2025-09-09 16:15:35 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-09-09 16:15:35 -0400 |
| commit | 6487d0607b2baae8d589cc64bc8607661c6be376 (patch) | |
| tree | 7f98ff482b56079a9e91017e0e0fe7a3519207aa /cloud | |
| parent | a3513244f121c7decc84f0a488dea798409e1710 (diff) | |
| download | opencode-6487d0607b2baae8d589cc64bc8607661c6be376.tar.gz opencode-6487d0607b2baae8d589cc64bc8607661c6be376.zip | |
wip: zen
Diffstat (limited to 'cloud')
| -rw-r--r-- | cloud/app/src/util/zen.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/cloud/app/src/util/zen.ts b/cloud/app/src/util/zen.ts index b2066e19b..7c243580c 100644 --- a/cloud/app/src/util/zen.ts +++ b/cloud/app/src/util/zen.ts @@ -110,17 +110,6 @@ const FREE_WORKSPACES = [ "wrk_01K46JDFR0E75SG2Q8K172KF3Y", // frank ] -const logger = { - metric: (values: Record<string, any>) => { - console.log(`_metric:${JSON.stringify(values)}`) - }, - log: console.log, - debug: (message: string) => { - if (Resource.App.stage === "production") return - console.debug(message) - }, -} - export async function handler( input: APIEvent, opts: { @@ -135,6 +124,17 @@ export async function handler( } }, ) { + const logger = { + metric: (values: Record<string, any>) => { + console.log(`_metric:${JSON.stringify(values)}`) + }, + log: console.log, + debug: (message: string) => { + if (Resource.App.stage === "production") return + console.debug(message) + }, + } + try { const url = new URL(input.request.url) const body = await input.request.json() |
