Skip to content

Commit

Permalink
fix(logs): restore pw:browser logs after launch has finished (#5527)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgozman committed Feb 20, 2021
1 parent e2a935b commit 46c8c29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/progress.ts
Expand Up @@ -70,10 +70,10 @@ export class ProgressController {

const progress: Progress = {
log: message => {
if (this._state === 'running') {
if (this._state === 'running')
this.metadata.log.push(message);
this.instrumentation.onCallLog(this._logName, message, this.sdkObject, this.metadata);
}
// Note: we might be sending logs after progress has finished, for example browser logs.
this.instrumentation.onCallLog(this._logName, message, this.sdkObject, this.metadata);
},
timeUntilDeadline: () => this._deadline ? this._deadline - monotonicTime() : 2147483647, // 2^31-1 safe setTimeout in Node.
isRunning: () => this._state === 'running',
Expand Down

0 comments on commit 46c8c29

Please sign in to comment.