Reduce cpp logging overhead

This commit is contained in:
topjohnwu
2023-05-09 19:14:08 -07:00
parent 7518092ad2
commit 583ffc8177
4 changed files with 5 additions and 5 deletions

View File

@ -25,7 +25,7 @@ pub mod ffi {
}
extern "Rust" {
fn log_with_rs(level: LogLevel, msg: &str);
fn log_with_rs(level: LogLevel, msg: &[u8]);
fn exit_on_error(b: bool);
fn set_log_level_state(level: LogLevel, enabled: bool);
fn cmdline_logging();