chore: log level

This commit is contained in:
lencx
2022-12-31 21:17:48 +08:00
parent 3dd49cd5d3
commit e2235e7060

View File

@@ -34,11 +34,7 @@ async fn main() {
// https://github.com/tauri-apps/tauri/pull/2736 // https://github.com/tauri-apps/tauri/pull/2736
.plugin( .plugin(
LoggerBuilder::new() LoggerBuilder::new()
.level(if cfg!(debug_assertions) { .level(log::LevelFilter::Debug)
log::LevelFilter::Debug
} else {
log::LevelFilter::Trace
})
.with_colors(colors) .with_colors(colors)
.targets([ .targets([
// LogTarget::LogDir, // LogTarget::LogDir,