mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 01:28:35 +02:00
Info logs in build
This commit is contained in:
@@ -1386,7 +1386,11 @@ fn main() {
|
|||||||
.level_for("tower", log::LevelFilter::Info)
|
.level_for("tower", log::LevelFilter::Info)
|
||||||
.level_for("tracing", log::LevelFilter::Info)
|
.level_for("tracing", log::LevelFilter::Info)
|
||||||
.with_colors(ColoredLevelConfig::default())
|
.with_colors(ColoredLevelConfig::default())
|
||||||
.level(log::LevelFilter::Trace)
|
.level(if is_dev() {
|
||||||
|
log::LevelFilter::Trace
|
||||||
|
} else {
|
||||||
|
log::LevelFilter::Info
|
||||||
|
})
|
||||||
.build(),
|
.build(),
|
||||||
)
|
)
|
||||||
.setup(|app| {
|
.setup(|app| {
|
||||||
@@ -1530,7 +1534,7 @@ fn main() {
|
|||||||
let h = app_handle.clone();
|
let h = app_handle.clone();
|
||||||
tauri::async_runtime::spawn(async move {
|
tauri::async_runtime::spawn(async move {
|
||||||
let info = analytics::track_launch_event(&h).await;
|
let info = analytics::track_launch_event(&h).await;
|
||||||
info!("Launched Yaak {:?}", info);
|
debug!("Launched Yaak {:?}", info);
|
||||||
|
|
||||||
// Wait for window render and give a chance for the user to notice
|
// Wait for window render and give a chance for the user to notice
|
||||||
if info.launched_after_update && info.num_launches > 1 {
|
if info.launched_after_update && info.num_launches > 1 {
|
||||||
|
|||||||
Reference in New Issue
Block a user