Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

[P3] rbt_cfg.toml: auto_aim_rust=debug 对 lib crate 日志不生效 #6

Description

@XiaoPengYouCode

问题

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.tomlname = "lib")改成 auto_aim_rust 以匹配配置。

位置

cfg/rbt_cfg.toml:10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions