Merge pull request #30901 from backstage/blam/secret-fix

Fix scaffolder duplicate logs in `fetch:template`
This commit is contained in:
Ben Lambert
2025-08-15 16:24:15 +02:00
committed by GitHub
2 changed files with 10 additions and 6 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend': patch
---
Stop logging of `SPLAT` twice in logs
@@ -61,23 +61,22 @@ export class BackstageLoggerTransport extends Transport {
const message = info[MESSAGE];
const level = info[LEVEL];
const splat = info[SPLAT];
switch (level) {
case 'error':
this.backstageLogger.error(String(message), ...splat);
this.backstageLogger.error(String(message));
break;
case 'warn':
this.backstageLogger.warn(String(message), ...splat);
this.backstageLogger.warn(String(message));
break;
case 'info':
this.backstageLogger.info(String(message), ...splat);
this.backstageLogger.info(String(message));
break;
case 'debug':
this.backstageLogger.debug(String(message), ...splat);
this.backstageLogger.debug(String(message));
break;
default:
this.backstageLogger.info(String(message), ...splat);
this.backstageLogger.info(String(message));
}
this.taskContext.emitLog(message, { stepId: this.stepId });