[PR #3061] [MERGED] Log message to stderr if LOG_FILE is not writable #3210

Closed
opened 2026-03-03 09:41:54 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/3061
Author: @pjsier
Created: 12/29/2022
Status: Merged
Merged: 1/9/2023
Merged by: @dani-garcia

Base: mainHead: fix/log-file-permissions-3055


📝 Commits (1)

  • f2e9dde Log message to stderr if LOG_FILE is not writable

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 src/config.rs (+6 -0)

📄 Description

Closes #3055. Logs a message to stderr if the configured log file isn't writable. Because the error! macro is configured to use any log files already set up I'm using eprintln! here. Let me know if there's another way you would prefer.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/3061 **Author:** [@pjsier](https://github.com/pjsier) **Created:** 12/29/2022 **Status:** ✅ Merged **Merged:** 1/9/2023 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `fix/log-file-permissions-3055` --- ### 📝 Commits (1) - [`f2e9dde`](https://github.com/dani-garcia/vaultwarden/commit/f2e9ddef4eaa7eef4741b52813d6bd4e859473fd) Log message to stderr if LOG_FILE is not writable ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/config.rs` (+6 -0) </details> ### 📄 Description Closes #3055. Logs a message to stderr if the configured log file isn't writable. Because the `error!` macro is configured to use any log files already set up I'm using `eprintln!` here. Let me know if there's another way you would prefer. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 09:41:54 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#3210
No description provided.