Closed nodakai closed 2 months ago
@nodakai, thanks for reporting the issue!
The error message just states that the config file could not be opened, but actually, this is not a problem since the following line states: Unable to load default config file, populate config with default values.
When the process is started twice, once with --pub
and argument and once without so that the subscriber is started, do you observe the println
with the send sample or not? From the code point of view everything looks fine.
Ah so [D]
are Debug logs, and [T]
are Trace logs, which can be ignored?
In fact the publisher and the subscriber seem to work fine, except they produce noisy Debug/Trace logs.
Where can I disable logs below Info level? I can't seem to find config items for log levels under https://docs.rs/iceoryx2/latest/iceoryx2/config/index.html
Maybe I need to enable logger_log
and configure the log
crate?
You can use these call
use iceoryx2_bb_log::set_log_level;
set_log_level(iceoryx2_bb_log::LogLevel::Info);
@nodakai you are right, they are currently a bit noisy - some left over from the early days. We will release v0.4 next week and there we will turn down the noisyness of the examples a bit.
Thank you both, I guess the tutorial could start with set_log_level(iceoryx2_bb_log::LogLevel::Info)
unless you're planning a major overhaul
Required information
Operating system:
Linux ------ 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 GNU/Linux
Rust version:
rustc 1.80.1
Cargo version:
cargo 1.80.1 (376290515 2024-07-16)
iceoryx2 version: name = "iceoryx2" version = "0.3.0"
Observed result or behaviour:
Expected result or behaviour: https://github.com/eclipse-iceoryx/iceoryx2/tree/v0.3.0?tab=readme-ov-file#publish-subscribe
Conditions where it occurred / Performed steps:
It's just the pub and sub samples from the README combined into a single binary