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 56e34c4 commit a20d29cCopy full SHA for a20d29c
src/shared/logger.js
@@ -171,13 +171,15 @@ class Logger {
171
}
172
173
const cdsContext = cds?.context;
174
- const req = cdsContext?.http?.req;
175
const cdsData = cdsContext
176
? {
177
[FIELD.CORRELATION_ID]: cdsContext.id,
178
[FIELD.REMOTE_USER]: cdsContext.user?.id,
179
[FIELD.TENANT_ID]: cdsContext.tenant,
180
- [FIELD.TENANT_SUBDOMAIN]: req?.authInfo?.getSubdomain?.(),
+ [FIELD.TENANT_SUBDOMAIN]:
+ cdsContext.user?.authInfo?.getSubdomain?.() ??
181
+ cdsContext.user?.tokenInfo?.getSubdomain?.() ??
182
+ cdsContext?.http?.req?.authInfo?.getSubdomain?.(),
183
184
: undefined;
185
// NOTE: the start time of Date's milliseconds is the epoch and the start time for hrtime is an arbitrary time
0 commit comments