Skip to content

Commit 915eedb

Browse files
committed
test
1 parent 9b95d4f commit 915eedb

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

packages/app/server/api/repo/commits.get.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,30 @@ export default defineEventHandler(async (event) => {
252252
const totalCount = releases.length;
253253
const totalPages = Math.max(1, Math.ceil(totalCount / perPage));
254254
const origin = getCommitPanelOrigin(event);
255+
// #region agent log
256+
{
257+
const _h = getHeaders(event);
258+
const _u = getRequestURL(event);
259+
console.log(
260+
"[DEBUG-9e8f04][commits.get] hyp:A,B,C,D,E",
261+
JSON.stringify({
262+
owner: query.owner,
263+
repo: query.repo,
264+
page,
265+
host: _h.host ?? null,
266+
xForwardedHost: _h["x-forwarded-host"] ?? null,
267+
xForwardedProto: _h["x-forwarded-proto"] ?? null,
268+
referer: _h.referer ?? null,
269+
userAgent: _h["user-agent"] ?? null,
270+
requestUrl: _u.toString(),
271+
resolvedOrigin: origin,
272+
cfRay: _h["cf-ray"] ?? null,
273+
cfCacheStatus: _h["cf-cache-status"] ?? null,
274+
ts: Date.now(),
275+
}),
276+
);
277+
}
278+
// #endregion
255279
const commitMetadata = await getCommitMetadata(
256280
installation,
257281
query.owner,

0 commit comments

Comments
 (0)