[PR #7597] [MERGED] fix: set default logger level to "warn" #7431

Closed
opened 2026-03-13 13:36:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7597
Author: @bytaesu
Created: 1/24/2026
Status: Merged
Merged: 1/25/2026
Merged by: @himself65

Base: canaryHead: cursor/default-logger-warn-level-90e0


📝 Commits (2)

  • 58b8ace fix(core): change default logger level to warn
  • 2cde8c7 docs: clearer description

📊 Changes

2 files changed (+6 additions, -6 deletions)

View changed files

📝 docs/content/docs/reference/options.mdx (+5 -5)
📝 packages/core/src/env/logger.ts (+1 -1)

📄 Description

Note

Useful logs like deprecate() should be visible by default.

This pull request contains changes generated by a Cursor Cloud Agent

Open in Cursor Open in Web


Summary by cubic

Set the default logger level to "warn" so deprecation messages are visible without extra configuration. Documentation example updated to reflect the new default.

  • Migration
    • To keep the old behavior, set logger.level to "error" in your config.

Written for commit 2cde8c7a2a. Summary will update on new commits.


🔄 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/7597 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 1/24/2026 **Status:** ✅ Merged **Merged:** 1/25/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `cursor/default-logger-warn-level-90e0` --- ### 📝 Commits (2) - [`58b8ace`](https://github.com/better-auth/better-auth/commit/58b8aceee4dd5227053f6deb8e5ec00bc9b14e81) fix(core): change default logger level to warn - [`2cde8c7`](https://github.com/better-auth/better-auth/commit/2cde8c7a2ab72eb08ef7c1a4a67b329f63ff0fe5) docs: clearer description ### 📊 Changes **2 files changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/reference/options.mdx` (+5 -5) 📝 `packages/core/src/env/logger.ts` (+1 -1) </details> ### 📄 Description > [!NOTE] > Useful logs like `deprecate()` should be visible by default. This pull request contains changes generated by a Cursor Cloud Agent <a href="https://cursor.com/background-agent?bcId=bc-f609f48d-0465-46ae-9d92-f68277ecd6e0"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"><img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-f609f48d-0465-46ae-9d92-f68277ecd6e0"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"><img alt="Open in Web" src="https://cursor.com/open-in-web.svg"></picture></a> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Set the default logger level to "warn" so deprecation messages are visible without extra configuration. Documentation example updated to reflect the new default. - **Migration** - To keep the old behavior, set logger.level to "error" in your config. <sup>Written for commit 2cde8c7a2ab72eb08ef7c1a4a67b329f63ff0fe5. Summary will update on new commits.</sup> <!-- 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 13:36:07 -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#7431