@@ -13,7 +13,6 @@ use serde::Serialize;
1313use url:: Url ;
1414
1515use tauri_macros:: default_runtime;
16- use tauri_utils:: debug_eprintln;
1716use tauri_utils:: {
1817 assets:: { AssetKey , CspHash } ,
1918 config:: { Csp , CspDirectiveSources } ,
@@ -67,7 +66,7 @@ fn set_csp<R: Runtime>(
6766 acc. style . push ( hash. into ( ) ) ;
6867 }
6968 _csp_hash => {
70- debug_eprintln ! ( "Unknown CspHash variant encountered: {:?}" , _csp_hash) ;
69+ log :: debug !( "Unknown CspHash variant encountered: {:?}" , _csp_hash) ;
7170 }
7271 }
7372
@@ -362,14 +361,14 @@ impl<R: Runtime> AppManager<R> {
362361 let asset_response = assets
363362 . get ( & path. as_str ( ) . into ( ) )
364363 . or_else ( || {
365- debug_eprintln ! ( "Asset `{path}` not found; fallback to {path}.html" ) ;
364+ log :: debug !( "Asset `{path}` not found; fallback to {path}.html" ) ;
366365 let fallback = format ! ( "{}.html" , path. as_str( ) ) . into ( ) ;
367366 let asset = assets. get ( & fallback) ;
368367 asset_path = fallback;
369368 asset
370369 } )
371370 . or_else ( || {
372- debug_eprintln ! (
371+ log :: debug !(
373372 "Asset `{}` not found; fallback to {}/index.html" ,
374373 path,
375374 path
@@ -380,7 +379,7 @@ impl<R: Runtime> AppManager<R> {
380379 asset
381380 } )
382381 . or_else ( || {
383- debug_eprintln ! ( "Asset `{}` not found; fallback to index.html" , path) ;
382+ log :: debug !( "Asset `{}` not found; fallback to index.html" , path) ;
384383 let fallback = AssetKey :: from ( "index.html" ) ;
385384 let asset = assets. get ( & fallback) ;
386385 asset_path = fallback;
@@ -412,7 +411,7 @@ impl<R: Runtime> AppManager<R> {
412411 } )
413412 }
414413 Err ( e) => {
415- debug_eprintln ! ( "{:?}" , e) ; // TODO log::error!
414+ log :: error !( "{:?}" , e) ;
416415 Err ( Box :: new ( e) )
417416 }
418417 }
0 commit comments