Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace log/env_logger with tracing/tracing_subscriber #689

Merged
merged 4 commits into from
Aug 12, 2022
Merged

Conversation

ascjones
Copy link
Collaborator

Since main dependencies e.g. subxt and jsonrpsee are using tracing, we should use these in order to see the logging output from those libraries.

@ascjones ascjones merged commit a438350 into master Aug 12, 2022
@ascjones ascjones deleted the aj/tracing branch August 12, 2022 11:20
@ascjones ascjones mentioned this pull request Aug 15, 2022
HCastano added a commit that referenced this pull request Aug 15, 2022
HCastano added a commit that referenced this pull request Aug 16, 2022
* Add `WasmOptHandler`

Just a basic copy-pasta of what's in the existing optimization code

* Move code from `optimize_wasm` into a handler method

* Pull suggestion string into const

* Remove old Wasm optimization functions

* Remove `dest_optimized` argument from `optimize` method

* Move `check_wasm_opt_version_compatibility` into WasmOptHandler impl

I think it makes sense to have this be associated with the handler
instead of just floating around on its own.

* Move the handler code further up the module, before all the functions

* Decrease indentation of error string

* Move `WasmOptHandler` into its own module

* Move `create_executable` test helper to `utils` module

* Switch from `env_logger` to `tracing`

Related PR: #689

* Indent some code
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