|
|
|
@ -162,8 +162,22 @@ export class LoggingComponent implements OnInit {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
exportDataInExcel(): void {
|
|
|
|
exportDataInExcel(): void {
|
|
|
|
|
|
|
|
const sanitizedData = this.filteredItems.map(item => {
|
|
|
|
|
|
|
|
if (item.requestBody) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
const body = JSON.parse(item.requestBody);
|
|
|
|
|
|
|
|
if (body.password) {
|
|
|
|
|
|
|
|
body.password = '******';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return { ...item, requestBody: JSON.stringify(body) };
|
|
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
|
|
return item;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return item;
|
|
|
|
|
|
|
|
});
|
|
|
|
this.excelExportService.exportExcel(
|
|
|
|
this.excelExportService.exportExcel(
|
|
|
|
this.filteredItems,
|
|
|
|
sanitizedData,
|
|
|
|
LOGGING_DETAILS_FILE_NAME,
|
|
|
|
LOGGING_DETAILS_FILE_NAME,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|