native: disable debug logs by default (#4740)
Signed-off-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
1 parent
b0774510d8
commit
0ca8c86cbd
5 files changed
+16
-16
No files matched your search
Generated
+8
-9
@@ -3008,9 +3008,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "blitz-dom"
|
name = "blitz-dom"
|
||||||
version = "0.2.0"
|
version = "0.2.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "5587a3ef2481d56eec3771ad6115e8911636d68c27500e17de299702547f80a9"
|
checksum = "961605e9c4cc60eb93bc54172650d3f7b868d15a6e3345419f5e76d1df367b45"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"accesskit 0.17.1",
|
"accesskit 0.17.1",
|
||||||
"app_units",
|
"app_units",
|
||||||
@@ -3062,9 +3062,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "blitz-net"
|
name = "blitz-net"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d21065df858b418f4f38dc720ba6d4239941cf621d21f49d57477085f8bfc5d1"
|
checksum = "0583c80a179a95a08adeb30c6c25dfeaa9d6e9314072f3c81a7976dee8d7a562"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"blitz-traits",
|
"blitz-traits",
|
||||||
"data-url 0.3.1",
|
"data-url 0.3.1",
|
||||||
@@ -3074,9 +3074,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "blitz-paint"
|
name = "blitz-paint"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4e222e3bc111df558414d4d680e2c1fefb15466b3b5a04407923d06967bd15b6"
|
checksum = "027aa42b3795589c9d7ae0238ac3087f9f22b58f9643fc22c4dc1ef1ef3413b2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyrender",
|
"anyrender",
|
||||||
"anyrender_svg",
|
"anyrender_svg",
|
||||||
@@ -3089,15 +3089,14 @@ dependencies = [
|
|||||||
"peniko",
|
"peniko",
|
||||||
"stylo",
|
"stylo",
|
||||||
"taffy 0.9.0",
|
"taffy 0.9.0",
|
||||||
"tracing",
|
|
||||||
"usvg",
|
"usvg",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "blitz-shell"
|
name = "blitz-shell"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "93d1e7e3bb19a5b2bd8b6b899f997bf9e56c83ba460bd77d0d11a914d6474622"
|
checksum = "d0c3e586f0547855cd738c41cb4700bc0889c34ad5d0ad082f532c4ac0eb0c4e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"accesskit 0.17.1",
|
"accesskit 0.17.1",
|
||||||
"accesskit_winit 0.23.1",
|
"accesskit_winit 0.23.1",
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ homepage = "https://dioxuslabs.com/learn/0.6/getting_started"
|
|||||||
keywords = ["dom", "ui", "gui", "react"]
|
keywords = ["dom", "ui", "gui", "react"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["accessibility", "tracing", "svg", "system-fonts"]
|
default = ["accessibility", "svg", "system-fonts"]
|
||||||
svg = ["blitz-dom/svg"]
|
svg = ["blitz-dom/svg"]
|
||||||
accessibility = ["blitz-dom/accessibility"]
|
accessibility = ["blitz-dom/accessibility"]
|
||||||
tracing = ["dep:tracing", "blitz-dom/tracing"]
|
tracing = ["dep:tracing", "blitz-dom/tracing"]
|
||||||
|
|||||||
@@ -30,23 +30,23 @@ pub(crate) fn qual_name(local_name: &str, namespace: Option<&str>) -> QualName {
|
|||||||
macro_rules! trace {
|
macro_rules! trace {
|
||||||
($pattern:literal) => {{
|
($pattern:literal) => {{
|
||||||
#[cfg(feature = "tracing")]
|
#[cfg(feature = "tracing")]
|
||||||
tracing::info!($pattern);
|
tracing::debug!($pattern);
|
||||||
}};
|
}};
|
||||||
($pattern:literal, $item1:expr) => {{
|
($pattern:literal, $item1:expr) => {{
|
||||||
#[cfg(feature = "tracing")]
|
#[cfg(feature = "tracing")]
|
||||||
tracing::info!($pattern, $item1);
|
tracing::debug!($pattern, $item1);
|
||||||
}};
|
}};
|
||||||
($pattern:literal, $item1:expr, $item2:expr) => {{
|
($pattern:literal, $item1:expr, $item2:expr) => {{
|
||||||
#[cfg(feature = "tracing")]
|
#[cfg(feature = "tracing")]
|
||||||
tracing::info!($pattern, $item1, $item2);
|
tracing::debug!($pattern, $item1, $item2);
|
||||||
}};
|
}};
|
||||||
($pattern:literal, $item1:expr, $item2:expr, $item3:expr) => {{
|
($pattern:literal, $item1:expr, $item2:expr, $item3:expr) => {{
|
||||||
#[cfg(feature = "tracing")]
|
#[cfg(feature = "tracing")]
|
||||||
tracing::info!($pattern, $item1, $item2);
|
tracing::debug!($pattern, $item1, $item2);
|
||||||
}};
|
}};
|
||||||
($pattern:literal, $item1:expr, $item2:expr, $item3:expr, $item4:expr) => {{
|
($pattern:literal, $item1:expr, $item2:expr, $item3:expr, $item4:expr) => {{
|
||||||
#[cfg(feature = "tracing")]
|
#[cfg(feature = "tracing")]
|
||||||
tracing::info!($pattern, $item1, $item2, $item3, $item4);
|
tracing::debug!($pattern, $item1, $item2, $item3, $item4);
|
||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
pub(crate) use trace;
|
pub(crate) use trace;
|
||||||
@@ -10,7 +10,7 @@ homepage = "https://dioxuslabs.com/learn/0.6/getting_started"
|
|||||||
keywords = ["dom", "ui", "gui", "react"]
|
keywords = ["dom", "ui", "gui", "react"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["accessibility", "hot-reload", "tracing", "net", "html", "svg", "system-fonts", "clipboard", "file_dialog"]
|
default = ["accessibility", "hot-reload", "net", "html", "svg", "system-fonts", "clipboard", "file_dialog"]
|
||||||
clipboard = ["blitz-shell/clipboard"]
|
clipboard = ["blitz-shell/clipboard"]
|
||||||
file_dialog = ["blitz-shell/file_dialog"]
|
file_dialog = ["blitz-shell/file_dialog"]
|
||||||
svg = ["blitz-dom/svg", "blitz-paint/svg"]
|
svg = ["blitz-dom/svg", "blitz-paint/svg"]
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ impl NavigationProvider for DioxusNativeNavigationProvider {
|
|||||||
&& matches!(options.url.scheme(), "http" | "https" | "mailto")
|
&& matches!(options.url.scheme(), "http" | "https" | "mailto")
|
||||||
{
|
{
|
||||||
if let Err(err) = webbrowser::open(options.url.as_str()) {
|
if let Err(err) = webbrowser::open(options.url.as_str()) {
|
||||||
|
#[cfg(feature = "tracing")]
|
||||||
tracing::error!("Failed to open URL: {}", err);
|
tracing::error!("Failed to open URL: {}", err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user