Fix bot logger (#12018)
This commit is contained in:
parent
9939c9d01d
commit
6360fe46f3
1 changed files with 2 additions and 2 deletions
|
@ -331,8 +331,8 @@ function getLogger(win: Cypress.AUTWindow, loggerName: string): Logger {
|
|||
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 (!("extend" in logger)) {
|
||||
logger["extend"] = (namespace: string) => getLogger(win, loggerName + ":" + namespace);
|
||||
if (!("getChild" in logger)) {
|
||||
logger["getChild"] = (namespace: string) => getLogger(win, loggerName + ":" + namespace);
|
||||
logger.methodFactory = makeLogMethodFactory(win);
|
||||
logger.setLevel(loglevel.levels.DEBUG);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue