[PR #602] [MERGED] Remove the default console logger when it is not set in the configuration #15482

Closed
opened 2025-11-02 11:47:32 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/602
Author: @willemvd
Created: 1/6/2017
Status: Merged
Merged: 1/17/2017
Merged by: @lunny

Base: masterHead: master


📝 Commits (5)

  • eb09b63 Remove the default console logger when it is not set in the configuration
  • 3749eaf Added comment to new function (lint failure)
  • e22626d update based on PR comments (code style)
  • b6ca28d code style fix (thanks bkcsoft)
  • c39918c check if logger exists based on the l.outputs (like in l.DelLogger) instead of adapter, otherwise panic when reinstalling gitea (since the output adapter still exist, without outputs)

📊 Changes

2 files changed (+21 additions, -0 deletions)

View changed files

📝 modules/log/log.go (+11 -0)
📝 modules/setting/setting.go (+10 -0)

📄 Description

Fix for issue #581
Removes the default console logger when it is not set in the configuration

Mark: this is my first Go programming experience so please be gentle ;)


🔄 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/602 **Author:** [@willemvd](https://github.com/willemvd) **Created:** 1/6/2017 **Status:** ✅ Merged **Merged:** 1/17/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (5) - [`eb09b63`](https://github.com/go-gitea/gitea/commit/eb09b6325debc6698f0b8713caa0c66b42fda942) Remove the default console logger when it is not set in the configuration - [`3749eaf`](https://github.com/go-gitea/gitea/commit/3749eaf82bbf962d12cada4e79b66b568cc1268c) Added comment to new function (lint failure) - [`e22626d`](https://github.com/go-gitea/gitea/commit/e22626d20c58647343820b62b53e6f3df5e97ec8) update based on PR comments (code style) - [`b6ca28d`](https://github.com/go-gitea/gitea/commit/b6ca28ddc2c0187a33a1ae3cb523b1ecf7017885) code style fix (thanks bkcsoft) - [`c39918c`](https://github.com/go-gitea/gitea/commit/c39918c9ca1776646d21c6ff01594dd49e9f3273) check if logger exists based on the l.outputs (like in l.DelLogger) instead of adapter, otherwise panic when reinstalling gitea (since the output adapter still exist, without outputs) ### 📊 Changes **2 files changed** (+21 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `modules/log/log.go` (+11 -0) 📝 `modules/setting/setting.go` (+10 -0) </details> ### 📄 Description Fix for issue #581 Removes the default console logger when it is not set in the configuration Mark: this is my first Go programming experience so please be gentle ;) --- <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 11:47:32 -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#15482