Skip to content

Commit ffc5468

Browse files
committed
feat: additional header for debugging information
1 parent 07be77a commit ffc5468

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/server/utils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ export const extractRequestForLogging = (request: FastifyRequest) => {
1010
} catch (e: any) {
1111
console.warn('failed to parse PG connstring for ' + request.url)
1212
}
13+
14+
const additional = request.headers['x-supabase-info']?.toString() || ''
15+
1316
return {
1417
method: request.method,
1518
url: request.url,
1619
pg,
20+
opt: additional,
1721
}
1822
}
1923

0 commit comments

Comments
 (0)