Skip to content

Commit

Permalink
fix: changing return when is dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
eudesenv committed Mar 12, 2024
1 parent d70cb1d commit d4ff7ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export class Formatter implements FormatterInterface {
} as LogMessage;

if (this.isDevelopmentEnv) {
console.log(formattedMessage);
return '';
return JSON.stringify(formattedMessage, null, 2);
}

return JSON.stringify(formattedMessage);
Expand Down

0 comments on commit d4ff7ab

Please sign in to comment.