tauri-apps / tauri-apps/plugins-workspace

[plugin-logging] Crash if there is a log file without write permission

Open
#2,422 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.