switch to tracing for logging
This commit is contained in:
1 parent
c8127e164b
commit
c55c17cb81
50 files changed
+95
-78
No files matched your search
@@ -194,7 +194,7 @@ impl DesktopService {
|
||||
/// launch print modal
|
||||
pub fn print(&self) {
|
||||
if let Err(e) = self.webview.print() {
|
||||
log::warn!("Open print modal failed: {e}");
|
||||
tracing::warn!("Open print modal failed: {e}");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ impl DesktopService {
|
||||
self.webview.open_devtools();
|
||||
|
||||
#[cfg(not(debug_assertions))]
|
||||
log::warn!("Devtools are disabled in release builds");
|
||||
tracing::warn!("Devtools are disabled in release builds");
|
||||
}
|
||||
|
||||
/// Create a wry event handler that listens for wry events.
|
||||
|
||||
@@ -330,7 +330,7 @@ pub fn launch_with_props<P: 'static>(root: Component<P>, props: P, cfg: Config)
|
||||
if temp.contains_key("href") {
|
||||
let open = webbrowser::open(temp["href"].as_str().unwrap());
|
||||
if let Err(e) = open {
|
||||
log::error!("Open Browser error: {:?}", e);
|
||||
tracing::error!("Open Browser error: {:?}", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ impl QueryEngine {
|
||||
}})
|
||||
}})();"#
|
||||
)) {
|
||||
log::warn!("Query error: {err}");
|
||||
tracing::warn!("Query error: {err}");
|
||||
}
|
||||
|
||||
Query {
|
||||
|
||||
Reference in new issue
Block a user