[PR #5282] [MERGED] Remove maxlines option for file logger #17738

Closed
opened 2025-11-02 15:25:42 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5282
Author: @lafriks
Created: 11/6/2018
Status: Merged
Merged: 11/7/2018
Merged by: @lafriks

Base: masterHead: fix/logging_mem_usage


📝 Commits (1)

  • 8c3df19 Remove maxlines option for file logger

📊 Changes

2 files changed (+3 additions, -22 deletions)

View changed files

📝 modules/log/file.go (+1 -18)
📝 modules/setting/setting.go (+2 -4)

📄 Description

To support this feature it requires scanning whole log file on every ssh git operation that is not sensible. Remove this feature as there is already option for file size that is more reasonable to use and other log file rotation options.

Should fix #4450


🔄 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/go-gitea/gitea/pull/5282 **Author:** [@lafriks](https://github.com/lafriks) **Created:** 11/6/2018 **Status:** ✅ Merged **Merged:** 11/7/2018 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `fix/logging_mem_usage` --- ### 📝 Commits (1) - [`8c3df19`](https://github.com/go-gitea/gitea/commit/8c3df19eb0c202072fc0c8c5010179258d6767c7) Remove maxlines option for file logger ### 📊 Changes **2 files changed** (+3 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `modules/log/file.go` (+1 -18) 📝 `modules/setting/setting.go` (+2 -4) </details> ### 📄 Description To support this feature it requires scanning whole log file on every ssh git operation that is not sensible. Remove this feature as there is already option for file size that is more reasonable to use and other log file rotation options. Should fix #4450 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 15:25:42 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17738