Closed YaZasnyal closed 1 year ago
Sounds like a good idea. Considering the amount of debugging info tarantool spurts out on "debug" level we might as well call it "trace". And leaving out "verbose" looks like a bug to me
Mapping can be adjusted using with_mapping
constructor. I think both this issue and #19 can be closed.
It seems that I closed this issue too early.
This function does not take into account custom mapping and no logging is performed. I think it should be changed like that
let level: SayLevel = (self.0)(metadata.level());
level <= SayLevel::from_i32(unsafe { ffi::LOG_LEVEL }).unwrap()
It seems that I closed this issue too early.
This function does not take into account custom mapping and no logging is performed. I think it should be changed like that
let level: SayLevel = (self.0)(metadata.level()); level <= SayLevel::from_i32(unsafe { ffi::LOG_LEVEL }).unwrap()
Thanks for the bug report, this has been fixed
Hi, I am experimenting with stored procedures written in rust and noticed that there are much fewer logging levels than in Tarantool itself. The main reason is a mismatch of levels in rust and Tarantool. I think that it is a good idea to avoid ambiguity but I still want to discuss the possibility of changing Rust's
Debug
to Tarantool'sVerbose
. It will make more sense for Rust programmers.https://github.com/picodata/tarantool-module/blob/8a1006460de486b908ddd8dfeb00c0ba149a860f/tarantool/src/log.rs#L78-L88