Skip to content

refactor: netLog directly uses network service#18289

Merged
nornagon merged 5 commits intomasterfrom
net-log-refactor
May 23, 2019
Merged

refactor: netLog directly uses network service#18289
nornagon merged 5 commits intomasterfrom
net-log-refactor

Conversation

@nornagon
Copy link
Contributor

@nornagon nornagon commented May 14, 2019

Description of Change

This refactors the netLog API to directly use the netlog interface exposed by the network service, instead of going through NetExportFileWriter. As part of the refactor:

  1. This fixes an issue where calling netLog.startLogging() immediately in app.on('ready') would silently fail to start the netlog.
  2. netLog.startLogging() now returns a promise, which you can await and be sure that the net log has started recording.
  3. netLog.currentlyRecordingPath has been deprecated. If you need access to the currently recording path, you'll have to track it yourself.

Checklist

Release Notes

Notes:

  • Fixed an issue where netLog.startLogging() would silently fail when called immediately during app.on('ready').
  • netLog.startLogging() now returns a promise which resolves when the net log has started recording.
  • Deprecated netLog.currentlyLoggingPath.

@nornagon nornagon requested review from deepak1556 and zcbenz May 14, 2019 01:00
@electron-cation electron-cation bot added new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels May 14, 2019
@nornagon nornagon marked this pull request as ready for review May 23, 2019 18:51
@nornagon nornagon force-pushed the net-log-refactor branch from e881112 to c8bef17 Compare May 23, 2019 18:51
Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

couple of code style questions.

@nornagon nornagon requested a review from deepak1556 May 23, 2019 20:38
@nornagon nornagon merged commit 646f572 into master May 23, 2019
@nornagon
Copy link
Contributor Author

mac failure is flake; merging.

@release-clerk
Copy link

release-clerk bot commented May 23, 2019

Release Notes Persisted

  • Fixed an issue where netLog.startLogging() would silently fail when called immediately during app.on('ready').
  • netLog.startLogging() now returns a promise which resolves when the net log has started recording.
  • Deprecated netLog.currentlyLoggingPath.

@nornagon nornagon deleted the net-log-refactor branch May 23, 2019 22:52
@nornagon nornagon mentioned this pull request May 24, 2019
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants