Skip to content

Commit f80a978

Browse files
committed
chore: debug logs
1 parent 22cc094 commit f80a978

File tree

1 file changed

+4
-2
lines changed
  • bin/accessibility-automation/plugin

1 file changed

+4
-2
lines changed

bin/accessibility-automation/plugin/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ const path = require("node:path");
33

44
const browserstackAccessibility = (on, config) => {
55
let browser_validation = true;
6-
config.env.BROWSERSTACK_LOGS = 'true';
7-
process.env.BROWSERSTACK_LOGS = 'true';
6+
if (process.env.BROWSERSTACK_ACCESSIBILITY_DEBUG === 'true') {
7+
config.env.BROWSERSTACK_LOGS = 'true';
8+
process.env.BROWSERSTACK_LOGS = 'true';
9+
}
810
on('task', {
911
browserstack_log(message) {
1012
console.log(message)

0 commit comments

Comments
 (0)