Re: Proposal: remove support for running desktop Firefox in single-process mode (e10s disabled) anywhere but in tests

2020-06-11 Thread Aaron Klotz

On 6/10/2020 2:09 PM, tom...@gmail.com wrote:

* GeckoView still supports running in non-e10s mode, and inability to mimic 
that environment on desktop builds would complicate writing code that works on 
android.



GeckoView's only technical reason for supporting non-e10s was FxR, but 
they have since switched to e10s we can (and want to) deprecate GV 
support for non-e10s.


- Aaron
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Using MOZ_LOG for Rust code

2020-06-11 Thread Valentin Gosu
Hi everyone,

Bug 1624090  and bug
1636888  which just
landed added the possibility to forward rust logging into the Gecko logger,
so it can now be captured using MOZ_LOG and MOZ_LOG_FILE

A few things to keep in mind:

1. When parsing modules in MOZ_LOG, the ones containing :: are considered
to be rust modules, so those are the ones we enable logging for. So if you
want to log everything in a top module like neqo_transport, you will have
to specify it as neqo_transport::*

Example:
*MOZ_LOG=timestamp,sync,nsHostResolver:5,neqo_transport::*:5,proxy:5*

If you're logging things in a submodule for example neqo_transport::recovery
you don't need the ::* at the end, but if it's there it will still work.
So these are both accepted
MOZ_LOG=timestamp,sync,neqo_transport::recovery:5
MOZ_LOG=timestamp,sync,neqo_transport::recovery::*:5

2. Due to us setting the release_max_level_info feature messages logged
with debug! or  trace! will not show up in non-debug builds. The way we
fixed that for neqo code was to add a separate macro that logs regardless
of the release_max_level.
See 1611990  for more
info.

3. When using both MOZ_LOG and RUST_LOG, modules that are specified in
MOZ_LOG will not appear in RUST_LOG.

Please try it out and let me know if you run into any issues.

Thanks!
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform