We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0664633 commit b8947f1Copy full SHA for b8947f1
src/app/common/middleware/logger.middleware.ts
@@ -60,6 +60,7 @@ export function koaLogger() {
60
ctx.state.request = {
61
id: randomString.generate(10),
62
ip: ctx.request.get('x-forwarded-for') || ctx.ip || undefined,
63
+ path: ctx.request.path,
64
};
65
ctx.response.set('X-Request-Id', ctx.state.request.id);
66
try {
src/app/common/typings/context.d.ts
@@ -68,6 +68,11 @@ export interface RequestState {
68
*/
69
id: string;
70
71
+ /**
72
+ * The (internal) path, so we can determine if it's a storage or API request.
73
+ */
74
+ path: string;
75
+
76
/**
77
* Request duration in ms
78
0 commit comments