[PR #2326] [MERGED] Allow enabling dev logs #3697

Closed
opened 2026-04-25 00:16:41 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/2326
Author: @lkiesow
Created: 11/19/2023
Status: Merged
Merged: 11/25/2023
Merged by: @advplyr

Base: masterHead: hide-dev-logs


📝 Commits (1)

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 server/Logger.js (+2 -1)

📄 Description

This patch allows users to enable dev logs on production systems by setting the HIDE_DEV_LOGS environment variable.

Before, you could only use this on a non-production environment. On production, the logs would be disabled. This patch changes the behavior and uses the NODE_ENV only as default. On production they are disabled if HIDE_DEV_LOGS is undefined but can be enabled by setting HIDE_DEV_LOGS=0 on dev, they are enabled if undefined, but can be disabled by setting HIDE_DEV_LOGS=1.


🔄 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/advplyr/audiobookshelf/pull/2326 **Author:** [@lkiesow](https://github.com/lkiesow) **Created:** 11/19/2023 **Status:** ✅ Merged **Merged:** 11/25/2023 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `hide-dev-logs` --- ### 📝 Commits (1) - [`7b6aa3b`](https://github.com/advplyr/audiobookshelf/commit/7b6aa3ba5a720a893d22bbc558137f9b0fd6bb5b) Allow enabling dev logs ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `server/Logger.js` (+2 -1) </details> ### 📄 Description This patch allows users to enable dev logs on production systems by setting the `HIDE_DEV_LOGS` environment variable. Before, you could only use this on a non-production environment. On production, the logs would be disabled. This patch changes the behavior and uses the `NODE_ENV` only as default. On production they are disabled if `HIDE_DEV_LOGS` is undefined but can be enabled by setting `HIDE_DEV_LOGS=0` on dev, they are enabled if undefined, but can be disabled by setting `HIDE_DEV_LOGS=1`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:16:41 +02:00
adam closed this issue 2026-04-25 00:16:41 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3697