Skip to content

Commit 9b64ce8

Browse files
committed
Add cacheKey and cacheStatus again
1 parent 0cf3d7e commit 9b64ce8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/handlers/services/logsService.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,12 @@ export class LogObjectBuilder {
247247
},
248248
createdAt: new Date(this.logData.createdAt?.getTime() ?? Date.now()),
249249
lastUsedOptionIndex: this.logData.lastUsedOptionIndex,
250+
cacheKey: this.logData.cacheKey,
250251
cacheMode: this.logData.cacheMode,
251252
cacheMaxAge: this.logData.cacheMaxAge,
253+
cacheStatus: this.logData.cacheStatus,
254+
hookSpanId: this.logData.hookSpanId,
255+
executionTime: this.logData.executionTime,
252256
};
253257
if (this.logData.transformedRequest) {
254258
clonedLogData.transformedRequest = {
@@ -267,12 +271,6 @@ export class LogObjectBuilder {
267271
if (this.logData.response) {
268272
clonedLogData.response = this.logData.response; // we don't need to clone the response, it's already cloned in the addResponse function
269273
}
270-
if (this.logData.hookSpanId) {
271-
clonedLogData.hookSpanId = this.logData.hookSpanId;
272-
}
273-
if (this.logData.executionTime) {
274-
clonedLogData.executionTime = this.logData.executionTime;
275-
}
276274
return clonedLogData;
277275
}
278276

0 commit comments

Comments
 (0)