mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(logs): restore pw:browser logs after launch has finished (#5527)
This commit is contained in:
parent
e2a935b3d6
commit
46c8c29f7a
@ -70,10 +70,10 @@ export class ProgressController {
|
|||||||
|
|
||||||
const progress: Progress = {
|
const progress: Progress = {
|
||||||
log: message => {
|
log: message => {
|
||||||
if (this._state === 'running') {
|
if (this._state === 'running')
|
||||||
this.metadata.log.push(message);
|
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.
|
timeUntilDeadline: () => this._deadline ? this._deadline - monotonicTime() : 2147483647, // 2^31-1 safe setTimeout in Node.
|
||||||
isRunning: () => this._state === 'running',
|
isRunning: () => this._state === 'running',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user