Skip to content

Commit

Permalink
Bring back migration logger JSON stringfy
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzuraw committed Oct 10, 2024
1 parent 9157eb4 commit f074a53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/avatax/scripts/migration-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ logger.attachTransport((log) => {

const bodyMessage = log._meta.name ? `[${log._meta.name}] ${message}` : message;

const formattedStuff = {
const formattedStuff = JSON.stringify({
message: bodyMessage,
...attributes,
...loggerContext.getRawContext(),
_meta,
};
});

if (_meta.logLevelName === "ERROR") {
console.error(formattedStuff);
Expand Down

0 comments on commit f074a53

Please sign in to comment.