Skip to content

Commit

Permalink
Remove log attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzuraw committed Nov 18, 2024
1 parent fee32ca commit 3dedda5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,7 @@ export const extractTransactionRedactedLogProperties = (model: CreateTransaction
companyCode: model.companyCode,
isAutocommit: model.commit,
currencyCode: model.currencyCode,
lines: model.lines.map((line) => ({
amount: line.amount,
taxCode: line.taxCode,
quantity: line.quantity,
itemCode: line.itemCode,
description: line.description,
discounted: line.discounted,
})),
linesCount: model.lines.length,
date: model.date.toISOString(),
isTaxIncluded: model.lines[0]?.taxIncluded ?? false,
discountAmount: model.discount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class CalculateTaxesUseCase {
});
},
).map((results) => {
this.logger.info("Taxes calculated", { calculatedTaxes: results });
this.logger.info("Taxes calculated - returning response do Saleor");

ClientLogStoreRequest.create({
level: "info",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const handler = orderCalculateTaxesSyncWebhook.createHandler(async (req, res, ct
discountStrategy,
);

logger.info("Taxes calculated", { calculatedTaxes: calculatedTaxes });
logger.info("Taxes calculated - returning response do Saleor");

ClientLogStoreRequest.create({
level: "info",
Expand Down

0 comments on commit 3dedda5

Please sign in to comment.