Commit 2cc1a10
committed
Implement adr-9: optionally move to the new tracing-support module for logging.
Summary of changes:
* Existing `error-support` crate re-exports `log`, `info`, `warn`, `trace` etc. All existing components are changed so that instead of using `log::` directly we use the re-exports from `error-support`.
* `error-support` also grows a `testing` feature to expose a couple of helpers for tests.
* new crate `tracing-support` which also re-exports `log`, `info`, `warn`, `trace` etc and also has a `testing` feature which re-exports the same test functions.
* `error-support` also grows new features to control whether it re-exports the log calls from the `log` and `env_logger` crates, or from `tracing-support`.
The intent here is that in app-services we will use the feature which uses `tracing` (because we also have `rust_log_forwarder` setup to support that, but initially on desktop we will enable the feature to continue using `log` while we work on setting up an appropriate tracing subscriber there.
There's also a feature to control how error reporting is done - by default it is done like has always been done on mobile, but is setup so that on Desktop it will use the tracing facility. This means we can eventually end up using a single tracing subscriber for both error reports and logs (and also any other event types we invent in the future).1 parent 9877328 commit 2cc1a10
File tree
163 files changed
+1267
-864
lines changed- components
- autofill
- src
- db
- sync
- address
- credit_card
- tests
- example
- src
- fxa-client/src
- internal
- state_machine/internal_machines
- logins
- src
- sync
- merino
- src/curated_recommendations
- nimbus
- examples
- src
- stateful
- client
- tests
- stateful
- client
- tests
- common
- places
- src
- api
- bookmark_sync
- db
- tx
- history_sync
- import
- ios
- storage
- bookmarks
- push
- src
- internal
- communications
- storage
- relevancy
- src
- remote_settings
- src
- suggest
- src
- testing
- support
- error
- src
- find-places-db
- src
- restmail-client
- src
- rust-log-forwarder
- src
- sql
- src
- tracing
- src
- viaduct-reqwest
- src
- sync15
- src
- bso
- clients_engine
- client
- engine
- sync_manager
- src
- tabs
- src
- sync
- viaduct
- src
- backend
- headers
- webext-storage
- ffi
- src
- src
- sync
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
163 files changed
+1267
-864
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
0 commit comments