tauri-apps / tauri-apps/plugins-workspace
[plugin-logging] Crash if there is a log file without write permission
Open
plugin: log
type: bug
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
If I configure to write logs to a file and I don't have write permission to that file, my tauri application crashes.
For example, if I open the application with sudo and then open it without sudo.
```
tauri_plugin_log::Builder::new()
.target(tauri_plugin_log::Target::new(
tauri_plugin_log::TargetKind::LogDir {
file_name: Some("logs".to_string()),
},
))
.build()
```
Contributor guide
Assessment
This issue has not been assessed yet.