Skip to content

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

Open
@pymete

Description

@pymete

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions