Fix bot logger (#12018)

pull/28217/head
Valere 2023-12-08 11:53:10 +01:00 committed by GitHub
parent 9939c9d01d
commit 6360fe46f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -331,8 +331,8 @@ function getLogger(win: Cypress.AUTWindow, loggerName: string): Logger {
const logger = loglevel.getLogger(loggerName); const logger = loglevel.getLogger(loggerName);
// If this is the first time this logger has been returned, turn it into a `Logger` and set the default level // If this is the first time this logger has been returned, turn it into a `Logger` and set the default level
if (!("extend" in logger)) { if (!("getChild" in logger)) {
logger["extend"] = (namespace: string) => getLogger(win, loggerName + ":" + namespace); logger["getChild"] = (namespace: string) => getLogger(win, loggerName + ":" + namespace);
logger.methodFactory = makeLogMethodFactory(win); logger.methodFactory = makeLogMethodFactory(win);
logger.setLevel(loglevel.levels.DEBUG); logger.setLevel(loglevel.levels.DEBUG);
} }