[PR #21777] [MERGED] fix: honor ENABLE_AUDIT_STDOUT for stdout audit logging #113583

Closed
opened 2026-05-18 14:00:15 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/21777
Author: @jannikstdl
Created: 2/23/2026
Status: Merged
Merged: 2/23/2026
Merged by: @tjbck

Base: devHead: fix/audit-stdout


📝 Commits (1)

  • c0a457d fix: correct ENABLE_AUDIT_STDOUT stdout filter

📊 Changes

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

View changed files

📝 backend/open_webui/utils/logger.py (+1 -1)

📄 Description

Pull Request Checklist

  • Target branch: This PR targets dev.
  • Description: Added below.
  • Changelog: Included below in Keep a Changelog style.
  • Testing: Manually verified the logger behavior for ENABLE_AUDIT_STDOUT=true/false.
  • Agentic AI Code: Changes were reviewed and tested manually.
  • Title Prefix: fix

Changelog Entry

Description

  • Fixes inverted stdout filter behavior for audit logs.

Added

  • None.

Changed

  • Adjusted stdout filter logic in backend/open_webui/utils/logger.py.

Deprecated

  • None.

Removed

  • None.

Fixed

  • ENABLE_AUDIT_STDOUT=true now includes audit logs on stdout as intended.
  • ENABLE_AUDIT_STDOUT=false continues to keep audit logs off stdout.

Security

  • None.

Breaking Changes

  • BREAKING CHANGE: None.

Additional Information

  • This aligns runtime behavior with the changelog entry about ENABLE_AUDIT_STDOUT and ENABLE_AUDIT_LOGS_FILE for container log collection.

Screenshots or Videos

  • N/A (backend logger filter fix).

Contributor License Agreement

contributor license agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.


🔄 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/open-webui/open-webui/pull/21777 **Author:** [@jannikstdl](https://github.com/jannikstdl) **Created:** 2/23/2026 **Status:** ✅ Merged **Merged:** 2/23/2026 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `fix/audit-stdout` --- ### 📝 Commits (1) - [`c0a457d`](https://github.com/open-webui/open-webui/commit/c0a457d5042d91944eda649ef621f754a9cb449e) fix: correct ENABLE_AUDIT_STDOUT stdout filter ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/utils/logger.py` (+1 -1) </details> ### 📄 Description # Pull Request Checklist - [x] **Target branch:** This PR targets `dev`. - [x] **Description:** Added below. - [x] **Changelog:** Included below in Keep a Changelog style. - [x] **Testing:** Manually verified the logger behavior for `ENABLE_AUDIT_STDOUT=true/false`. - [x] **Agentic AI Code:** Changes were reviewed and tested manually. - [x] **Title Prefix:** `fix` # Changelog Entry ### Description - Fixes inverted stdout filter behavior for audit logs. ### Added - None. ### Changed - Adjusted stdout filter logic in `backend/open_webui/utils/logger.py`. ### Deprecated - None. ### Removed - None. ### Fixed - `ENABLE_AUDIT_STDOUT=true` now includes audit logs on stdout as intended. - `ENABLE_AUDIT_STDOUT=false` continues to keep audit logs off stdout. ### Security - None. ### Breaking Changes - **BREAKING CHANGE**: None. --- ### Additional Information - This aligns runtime behavior with the changelog entry about `ENABLE_AUDIT_STDOUT` and `ENABLE_AUDIT_LOGS_FILE` for container log collection. ### Screenshots or Videos - N/A (backend logger filter fix). ### Contributor License Agreement contributor license agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <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 2026-05-18 14:00:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#113583