[PR #5404] [MERGED] chore: removed noisy logger.info triggered by useActiveOrganization #5985

Closed
opened 2026-03-13 12:43:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5404
Author: @Konixy
Created: 10/18/2025
Status: Merged
Merged: 10/19/2025
Merged by: @Bekacru

Base: canaryHead: fix/remove_logger_in_organization_endpoint


📝 Commits (1)

  • 094d40c fix(org): removed noisy triggered by

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/organization/routes/crud-org.ts (+0 -1)

📄 Description

In crud-org.ts, there is a logger.info call that pollutes the server console when the user is not using an active organization and useActiveOrganization is called, which is very annoying.


Summary by cubic

Removed a noisy logger.info when no active organization is set. useActiveOrganization now returns null quietly without cluttering server logs.


🔄 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/better-auth/better-auth/pull/5404 **Author:** [@Konixy](https://github.com/Konixy) **Created:** 10/18/2025 **Status:** ✅ Merged **Merged:** 10/19/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/remove_logger_in_organization_endpoint` --- ### 📝 Commits (1) - [`094d40c`](https://github.com/better-auth/better-auth/commit/094d40c916d32fcac52ea7df336284b5c7a935bb) fix(org): removed noisy triggered by ### 📊 Changes **1 file changed** (+0 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/routes/crud-org.ts` (+0 -1) </details> ### 📄 Description In [`crud-org.ts`](https://github.com/better-auth/better-auth/blob/canary/packages/better-auth/src/plugins/organization/routes/crud-org.ts#L711), there is a `logger.info` call that pollutes the server console when the user is not using an active organization and `useActiveOrganization` is called, which is very annoying. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Removed a noisy logger.info when no active organization is set. useActiveOrganization now returns null quietly without cluttering server logs. <!-- End of auto-generated description by cubic. --> --- <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-03-13 12:43:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#5985