mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
refactor(core): log full url for request
This commit is contained in:
parent
b5104d8c19
commit
ddd1749e12
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ export default async function initApp(app: Koa): Promise<void> {
|
||||||
ctx.requestId = requestId;
|
ctx.requestId = requestId;
|
||||||
ctx.console = consoleLog;
|
ctx.console = consoleLog;
|
||||||
|
|
||||||
|
consoleLog.plain(`URL = ${ctx.URL.href}`);
|
||||||
|
|
||||||
await koaLogger({
|
await koaLogger({
|
||||||
transporter: (string) => {
|
transporter: (string) => {
|
||||||
consoleLog.plain(string);
|
consoleLog.plain(string);
|
||||||
|
|
Loading…
Reference in a new issue