From ddd1749e12b973a7d3430dabb1ee6537525c0cc6 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Fri, 24 May 2024 13:38:08 +0800 Subject: [PATCH] refactor(core): log full url for request --- packages/core/src/app/init.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/app/init.ts b/packages/core/src/app/init.ts index 642868071..59710646d 100644 --- a/packages/core/src/app/init.ts +++ b/packages/core/src/app/init.ts @@ -32,6 +32,8 @@ export default async function initApp(app: Koa): Promise { ctx.requestId = requestId; ctx.console = consoleLog; + consoleLog.plain(`URL = ${ctx.URL.href}`); + await koaLogger({ transporter: (string) => { consoleLog.plain(string);