Skip to content

Commit

Permalink
fix(default-reporter): use loglevel to filter deprecation warnings (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
milahu committed Mar 30, 2022
1 parent 5581e4e commit 6d4e944
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/default-reporter/src/index.ts
Expand Up @@ -104,6 +104,12 @@ export function toOutput$ (
const progressPushStream = new Rx.Subject<logs.ProgressLog>()
const stagePushStream = new Rx.Subject<logs.StageLog>()
const deprecationPushStream = new Rx.Subject<logs.DeprecationLog>()
if (opts.reportingOptions?.logLevel == 'error') {
// disable logging
// workaround for Rx.Subject.empty()
// https://github.com/ReactiveX/rxjs/discussions/6916
deprecationPushStream.next = () => null
}
const summaryPushStream = new Rx.Subject<logs.SummaryLog>()
const lifecyclePushStream = new Rx.Subject<logs.LifecycleLog>()
const statsPushStream = new Rx.Subject<logs.StatsLog>()
Expand Down

0 comments on commit 6d4e944

Please sign in to comment.