Skip to content

Commit 7323bef

Browse files
committed
Adds supressBrowserLog option
1 parent a71f679 commit 7323bef

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,12 @@ var SpecReporter = function(baseReporterDecorator, formatError, config) {
125125
this.LOG_SINGLE_BROWSER = '%s LOG: %s\n';
126126
this.LOG_MULTI_BROWSER = '%s %s LOG: %s\n';
127127
this.onBrowserLog = function(browser, log, type) {
128-
if (this._browsers && this._browsers.length === 1) {
129-
this.write(this.LOG_SINGLE_BROWSER, type.toUpperCase(), this.USE_COLORS ? log.cyan : log);
130-
} else {
131-
this.write(this.LOG_MULTI_BROWSER, browser, type.toUpperCase(), this.USE_COLORS ? log.cyan : log);
128+
if(!reporterCfg.supressBrowserLog) {
129+
if (this._browsers && this._browsers.length === 1) {
130+
this.write(this.LOG_SINGLE_BROWSER, type.toUpperCase(), this.USE_COLORS ? log.cyan : log);
131+
} else {
132+
this.write(this.LOG_MULTI_BROWSER, browser, type.toUpperCase(), this.USE_COLORS ? log.cyan : log);
133+
}
132134
}
133135
};
134136

0 commit comments

Comments
 (0)