SDA-3998 Improve logging for API call parameters related to apiCmds.writeCloud9Pipe

This commit is contained in:
Robin Westberg 2022-12-05 14:49:29 +01:00 committed by Salah Benmoussati
parent 3e9f0df838
commit 55deba3e48

View File

@ -551,6 +551,19 @@ const logApiCallParams = (arg: any) => {
)}`,
);
break;
case apiCmds.writeCloud9Pipe:
const compressedData = {
...arg,
data: Buffer.from(arg.data).toString('base64'),
};
logger.info(
`main-api-handler: - ${apiCmd} - Properties: ${JSON.stringify(
compressedData,
null,
2,
)}`,
);
break;
default:
logger.info(
`main-api-handler: - ${apiCmd} - Properties: ${JSON.stringify(