Open tdomhan opened 19 hours ago
I can't reproduce this to be honest, do you have a minimal reproducible example I can test on?
Thanks for taking a look! I'll try see if I can reproduce it in a new tauri app.
I was able to reproduce in a completely new project, but only after adding a dependency for tauri-plugin-devtools = "2.0.0"
.
This is the full Cargo.toml
[package]
name = "logbug"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
# The `_lib` suffix may seem redundant but it is necessary
# to make the lib name unique and wouldn't conflict with the bin name.
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
name = "logbug_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = ["devtools", "config-json5"] }
tauri-plugin-shell = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tauri-plugin-log = "2.0.3"
log = "0.4"
tauri-plugin-devtools = "2.0.0"
devtools and the log plugin are currently mutually exclusive because you can only have a single tracing subscriber, but this should actually result in a compilation error 🤔 ref https://docs.crabnebula.dev/devtools/troubleshoot/log-plugins/
ahh good to know thanks for the clarification!
Describe the bug
When using the
tauri_plugin_log
plugin with the Webview target as suchI get an infinite stream of
This is likely caused by the emit event handler emitting a lot which in turn calls the WebView target handler which calls emit etc..
I'm not sure if there's any config I'm supposed to have set to pre-filter that log message. Either one would need to avoid
emit
creating any log messages or try to manually not triggeremit
on such messages for WebView targets.Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response