[PR #689] [CLOSED] Fallback to console log when can't write log file #14039

Open
opened 2026-08-05 02:09:22 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/689
Author: @braginini
Created: 2/14/2023
Status: Closed

Base: mainHead: feature/fix_log_setup


📝 Commits (2)

  • af896c5 Fallback to console log when can't write log file
  • 388fc86 Remove hardcoded log path

📊 Changes

1 file changed (+37 additions, -9 deletions)

View changed files

📝 util/log.go (+37 -9)

📄 Description

Describe your changes

Skip writing log file when permissions don't allow write operations.
Fallback to CONSOLE log output.

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 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/netbirdio/netbird/pull/689 **Author:** [@braginini](https://github.com/braginini) **Created:** 2/14/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/fix_log_setup` --- ### 📝 Commits (2) - [`af896c5`](https://github.com/netbirdio/netbird/commit/af896c585fb6cd8c3563c945f7afd03418e7baff) Fallback to console log when can't write log file - [`388fc86`](https://github.com/netbirdio/netbird/commit/388fc8631e3cabc929c6207fa14b4292a6553c83) Remove hardcoded log path ### 📊 Changes **1 file changed** (+37 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `util/log.go` (+37 -9) </details> ### 📄 Description ## Describe your changes Skip writing log file when permissions don't allow write operations. Fallback to CONSOLE log output. ## Issue ticket number and link ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 02:09:22 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#14039