Skip to content

Commit

Permalink
fix(logger): logger shouldn't print headerlines in json mode
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam-abdulsalam committed Mar 7, 2024
1 parent 9161f3f commit 3f461b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/sfplogger/src/SFPLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ export default class SFPLogger {
}

static printHeaderLine(header, color: chalk.Chalk, logLevel, logger?: Logger) {
if (SFPLogger.isLogsDisabled)
return;

if (header == null)
header = '';
const lineLength = 90;
Expand Down

0 comments on commit 3f461b6

Please sign in to comment.