fix: unset prewarn param (#20109)

This commit is contained in:
Jason Rasmussen
2025-07-23 16:52:59 -04:00
committed by GitHub
parent 2bead445bd
commit a675922172
3 changed files with 24 additions and 23 deletions

View File

@@ -85,8 +85,13 @@ export class LoggingRepository {
this.logger = new MyConsoleLogger(cls, { context: LoggingRepository.name, color: !noColor });
}
static create() {
return new LoggingRepository(undefined, undefined);
static create(context?: string) {
const logger = new LoggingRepository(undefined, undefined);
if (context) {
logger.setContext(context);
}
return logger;
}
setAppName(name: string): void {