-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: system.debug config field #756
Conversation
src/base-hermione.js
Outdated
_setLogLevel() { | ||
if (!process.env.WDIO_LOG_LEVEL) { | ||
process.env.WDIO_LOG_LEVEL = _.get(this.config, "system.debug", false) ? "trace" : "error"; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
После загрузки конфига, устанавливаем переменную окружения WDIO_LOG_LEVEL основываясь на поле в конфиге, при этом если переменная среды уже установлена, не затираем ее
[ | ||
{ debug: true, WDIO_LOG_LEVEL: "trace" }, | ||
{ debug: false, WDIO_LOG_LEVEL: "error" }, | ||
{ WDIO_LOG_LEVEL: "error" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
проверка logLevel
по умолчанию
999e562
to
4a4f68e
Compare
30e3046
to
cb37c08
Compare
12604bb
to
e5cd031
Compare
e5cd031
to
4f3e01c
Compare
Что сделано
Починил
system.debug
в конфигеУстановил дефолтное значение
LOG_LEVEL
на"error"