forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1687553 - Make more
dump
implementations log to MOZ_LOG system …
…under module "Dump". r=xpcom-reviewers,nika This is an extension of the existing implementations added by Bug 1059469. By extension, this makes `console.log` and friends log to the MOZ_LOG system when `browser.dom.window.dump.enabled` is true. My immediate use case is capturing cumulative logs for the new `--backgroundtask ...` mode that will be used to invoke maintenance tasks when Firefox itself is not running. This will lead to duplicate messages (from both the MOZ_LOG system and `fputs`) when the MOZ_LOG system is not redirected but there's no particular harm in that. In the future, we could not `fputs` when the MOZ_LOG system will log the given message, but it seems better to actually do the work to connect the `Log.jsm` and `ConsoleAPI.jsm` systems to MOZ_LOG rather than continue to add work arounds. Differential Revision: https://phabricator.services.mozilla.com/D104636
- Loading branch information
Showing
4 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters