From 3f461b6e793cafa7121a79f7ce258d11fa06ef36 Mon Sep 17 00:00:00 2001 From: azlam-abdulsalam Date: Fri, 8 Mar 2024 08:54:55 +1100 Subject: [PATCH] fix(logger): logger shouldn't print headerlines in json mode --- packages/sfplogger/src/SFPLogger.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/sfplogger/src/SFPLogger.ts b/packages/sfplogger/src/SFPLogger.ts index 5cec3f91b..e5cb0dce1 100644 --- a/packages/sfplogger/src/SFPLogger.ts +++ b/packages/sfplogger/src/SFPLogger.ts @@ -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;