Skip to content

Commit

Permalink
Merge pull request #293 from elfenpiff/iox2-292-fix-log-macros
Browse files Browse the repository at this point in the history
[#292] Fix log macro bug
  • Loading branch information
elfenpiff committed Jul 14, 2024
2 parents 22357f5 + fa75000 commit 1354b2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions doc/release-notes/iceoryx2-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
* Build failure for Windows 11 i686-pc-windows-msvc [#235](https://github.com/eclipse-iceoryx/iceoryx2/issues/235)
* 'win32call' needs to provide the last error [#241](https://github.com/eclipse-iceoryx/iceoryx2/issues/241)
* Mem-leak in `iceoryx2-bb-posix::Directory::contents()` and skip empty file names [#287](https://github.com/eclipse-iceoryx/iceoryx2/issues/287)
* Log macros do no longer return values [#292](https://github.com/eclipse-iceoryx/iceoryx2/issues/292)

### Refactoring

Expand Down
5 changes: 0 additions & 5 deletions iceoryx2-bb/log/src/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ macro_rules! trace {
if result.is_err() {
$crate::__internal_print_log_msg($crate::LogLevel::Trace, std::format_args!("{:?}", $o), std::format_args!($($e),*))
}
result.ok().unwrap()
}
}
}
Expand Down Expand Up @@ -91,7 +90,6 @@ macro_rules! debug {
if result.is_err() {
$crate::__internal_print_log_msg($crate::LogLevel::Debug, std::format_args!("{:?}", $o), std::format_args!($($e),*))
}
result.ok().unwrap()
}
}
}
Expand Down Expand Up @@ -133,7 +131,6 @@ macro_rules! info {
if result.is_err() {
$crate::__internal_print_log_msg($crate::LogLevel::Info, std::format_args!("{:?}", $o), std::format_args!($($e),*))
}
result.ok().unwrap()
}
}
}
Expand Down Expand Up @@ -175,7 +172,6 @@ macro_rules! warn {
if result.is_err() {
$crate::__internal_print_log_msg($crate::LogLevel::Warn, std::format_args!("{:?}", $o), std::format_args!($($e),*))
}
result.ok().unwrap()
}
}
}
Expand Down Expand Up @@ -217,7 +213,6 @@ macro_rules! error {
if result.is_err() {
$crate::__internal_print_log_msg($crate::LogLevel::Error, std::format_args!("{:?}", $o), std::format_args!($($e),*))
}
result.ok().unwrap()
}
}
}
Expand Down

0 comments on commit 1354b2b

Please sign in to comment.