-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
569: Feature: Add defmt `println!` macro r=justahero a=justahero This PR addresses #541, adding a `defmt::println!` macro to always log content irrespective of a log level. This changes the `level` property in `Frame` struct to be of `Option` type, which requires a number of refactorings to handle both ways to log, either using the log macros (e.g. `defmt::info!`) or using the `defmt::println!` macro. The addition of the `defmt::println` macro should not break existing functionality. Co-authored-by: Sebastian Ziebell <sebastian.ziebell@asquera.de>
- Loading branch information
Showing
20 changed files
with
176 additions
and
78 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
INFO (1/7) running `change_init_struct`... | ||
INFO (2/7) running `test_for_changed_init_struct`... | ||
INFO (3/7) running `assert_true`... | ||
INFO (4/7) running `assert_imported_max`... | ||
INFO (5/7) running `result`... | ||
INFO (6/7) running `should_error`... | ||
INFO (7/7) running `fail`... | ||
(1/7) running `change_init_struct`... | ||
(2/7) running `test_for_changed_init_struct`... | ||
(3/7) running `assert_true`... | ||
(4/7) running `assert_imported_max`... | ||
(5/7) running `result`... | ||
(6/7) running `should_error`... | ||
(7/7) running `fail`... | ||
ERROR panicked at '`#[should_error]` test failed with outcome: Ok(this should have returned `Err`)' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
INFO (1/7) running `change_init_struct`... | ||
INFO (2/7) running `test_for_changed_init_struct`... | ||
INFO (3/7) running `assert_true`... | ||
INFO (4/7) running `assert_imported_max`... | ||
INFO (5/7) running `result`... | ||
INFO (6/7) running `should_error`... | ||
INFO (7/7) running `fail`... | ||
(1/7) running `change_init_struct`... | ||
(2/7) running `test_for_changed_init_struct`... | ||
(3/7) running `assert_true`... | ||
(4/7) running `assert_imported_max`... | ||
(5/7) running `result`... | ||
(6/7) running `should_error`... | ||
(7/7) running `fail`... | ||
ERROR panicked at '`#[should_error]` test failed with outcome: Ok(this should have returned `Err`)' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
It is 10:20:30 true false INFO test true | ||
It is 10:20:30 true false Hello World! |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
It is 10:20:30 true false INFO test true | ||
It is 10:20:30 true false Hello World! |
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
Oops, something went wrong.