Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
610: `defmt-print`: Log if malformed frame gets skipped r=justahero a=Urhengulas Also add `--verbose`-flag to also show non-defmt logs. Fixes #609 ## Example ``` ❯ bat defmt-frames | cargo run -- -e hello -v Finished dev [unoptimized + debuginfo] target(s) in 0.02s Running `/home/urhengulas/Documents/github.com/knurling-rs/defmt/target/debug/defmt-print -e hello -v` 0 INFO Lorem Ipsum is simply dummy text └─ hello::__cortex_m_rt_main @ /home/urhengulas/Documents/github.com/knurling-rs/defmt-app/src/bin/hello.rs:8 1 INFO of the printing and typesetting └─ hello::__cortex_m_rt_main @ /home/urhengulas/Documents/github.com/knurling-rs/defmt-app/src/bin/hello.rs:9 2 INFO industry. Lorem Ipsum has been the └─ hello::__cortex_m_rt_main @ /home/urhengulas/Documents/github.com/knurling-rs/defmt-app/src/bin/hello.rs:10 (HOST) WARN malformed frame skipped └─ defmt_print @ print/src/main.rs:79 4 INFO since the 1500s, when an unknown printer └─ hello::__cortex_m_rt_main @ /home/urhengulas/Documents/github.com/knurling-rs/defmt-app/src/bin/hello.rs:12 5 INFO took a galley of type and scrambled it to └─ hello::__cortex_m_rt_main @ /home/urhengulas/Documents/github.com/knurling-rs/defmt-app/src/bin/hello.rs:13 6 INFO make a type specimen book. ``` Co-authored-by: Johann Hemmann <johann.hemmann@code.berlin>
- Loading branch information