Skip to content

Commit 50dfa5c

Browse files
DimitarTachevrosen-vladimirov
authored andcommitted
docs: warn when the log level is TRACE or ALL as the CLI might print sensitive data
1 parent 168c2ae commit 50dfa5c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/common/logger/logger.ts

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ export class Logger implements ILogger {
4848
log4js.configure({ appenders, categories });
4949

5050
this.log4jsLogger = log4js.getLogger();
51+
if (level === LoggerLevel.TRACE || level === LoggerLevel.ALL) {
52+
this.warn(`The "${level}" log level might print some sensitive data like secrets or access tokens in request URLs. Be careful when you share this output.`, { wrapMessageWithBorders: true });
53+
}
5154
}
5255

5356
public initializeCliLogger(opts?: ILoggerOptions): void {

0 commit comments

Comments
 (0)