You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 16, 2026. It is now read-only.
问题
cfg/rbt_cfg.toml中配置的console_log_filter = "info,auto_aim_rust=debug,ort=warn"中auto_aim_rust=debug对 lib crate 的日志不生效。RustLogFilter按编译 crate/module target 前缀匹配,当前 lib crate 的实际 target 是lib::...,不是auto_aim_rust::...。所以debug级别的日志被过滤掉了。测试中已经验证了这一点:
trace!和debug!日志没有输出。修法
改为
info,lib=debug,ort=warn使得 lib crate 中debug!级别的日志能正常输出。或者将库 crate 名(
lib/Cargo.toml中name = "lib")改成auto_aim_rust以匹配配置。位置
cfg/rbt_cfg.toml:10