Skip to content

Commit 47c1894

Browse files
committed
Increase padding on log message
1 parent 31f0af6 commit 47c1894

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sUtAndEmissaryStrategies/5_scanners/aPiStandard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class ApiStandard extends Scanners {
127127
}
128128

129129
const zApApiPrintEnabledAScanersFuncCallback = (result) => { // eslint-disable-line no-unused-vars
130-
const scannersStateForBuildUser = result.scanners.reduce((all, each) => `${all}\nname: ${each.name.padEnd(50)}, id: ${each.id.padEnd(6)}, enabled: ${each.enabled.padEnd(5)}, attackStrength: ${each.attackStrength.padEnd(7)}, alertThreshold: ${each.alertThreshold.padEnd(7)}`, '');
130+
const scannersStateForBuildUser = result.scanners.reduce((all, each) => `${all}\nname: ${each.name.padEnd(52)}, id: ${each.id.padEnd(6)}, enabled: ${each.enabled.padEnd(5)}, attackStrength: ${each.attackStrength.padEnd(7)}, alertThreshold: ${each.alertThreshold.padEnd(7)}`, '');
131131
// This is for the Build User and the PurpleTeam admin:
132132
this.publisher.pubLog({ testSessionId, logLevel: 'info', textData: `\n\nThe following are all the active scanners available with their current state, for Test Session with id: "${testSessionId}":\n${scannersStateForBuildUser}\n`, tagObj: { tags: [`pid-${process.pid}`, this.#fileName, methodName, 'pt-build-user'] } });
133133
// This is for the PurpleTeam admin only:

src/sUtAndEmissaryStrategies/5_scanners/browserAppStandard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class BrowserAppStandard extends Scanners {
8787
}
8888

8989
const zApApiPrintEnabledAScanersFuncCallback = (result) => { // eslint-disable-line no-unused-vars
90-
const scannersStateForBuildUser = result.scanners.reduce((all, each) => `${all}\nname: ${each.name.padEnd(50)}, id: ${each.id.padEnd(6)}, enabled: ${each.enabled.padEnd(5)}, attackStrength: ${each.attackStrength.padEnd(7)}, alertThreshold: ${each.alertThreshold.padEnd(7)}`, '');
90+
const scannersStateForBuildUser = result.scanners.reduce((all, each) => `${all}\nname: ${each.name.padEnd(52)}, id: ${each.id.padEnd(6)}, enabled: ${each.enabled.padEnd(5)}, attackStrength: ${each.attackStrength.padEnd(7)}, alertThreshold: ${each.alertThreshold.padEnd(7)}`, '');
9191
// This is for the Build User and the PurpleTeam admin:
9292
this.publisher.pubLog({ testSessionId, logLevel: 'info', textData: `\n\nThe following are all the active scanners available with their current state, for Test Session with id: "${testSessionId}":\n${scannersStateForBuildUser}\n`, tagObj: { tags: [`pid-${process.pid}`, this.#fileName, methodName, 'pt-build-user'] } });
9393
// This is for the PurpleTeam admin only:

0 commit comments

Comments
 (0)