|
@@ -36,8 +36,9 @@ NetLog.prototype.startLogging = function (path, ...args) {
|
|
|
|
|
|
const _originalStopLogging = NetLog.prototype.stopLogging
|
|
|
NetLog.prototype.stopLogging = function () {
|
|
|
+ const logPath = this._currentlyLoggingPath
|
|
|
this._currentlyLoggingPath = null
|
|
|
- return _originalStopLogging.call(this)
|
|
|
+ return _originalStopLogging.call(this).then(() => logPath)
|
|
|
}
|
|
|
|
|
|
const currentlyLoggingPathDeprecated = deprecate.warnOnce('currentlyLoggingPath')
|